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:
parent
06c231fbba
commit
d2b07ebde8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user