1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Fix docblock removal

This commit is contained in:
Matthew Brown 2020-08-23 13:45:45 -04:00 committed by Daniil Gentili
parent ae51f40a54
commit 5dc60d7d6a
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

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