1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Fix docblock removal

This commit is contained in:
Matthew Brown 2020-08-23 13:45:45 -04:00
parent 06c231fbba
commit d2b07ebde8

View File

@ -379,7 +379,7 @@ class FunctionDocblockManipulator
$old_psalm_return_type = null;
if (isset($parsed_docblock->tags['psalm-return'])) {
$old_psalm_return_type = array_shift($parsed_docblock->tags['psalm-return']);
$old_psalm_return_type = reset($parsed_docblock->tags['psalm-return']);
}
if ($this->new_psalm_return_type