mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Ignore trailing slashes in user-supplied classes
This commit is contained in:
parent
9428941598
commit
2ae893120e
@ -1584,7 +1584,7 @@ class StatementsChecker
|
||||
|
||||
if ($return_type_part === '$' . $method_param['name']) {
|
||||
if ($arg->value instanceof PhpParser\Node\Scalar\String_) {
|
||||
$return_type_part = $arg->value->value;
|
||||
$return_type_part = preg_replace('/^\\\/', '', $arg->value->value);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user