1
0
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:
Matthew Brown 2016-06-02 17:56:27 -04:00
parent 9428941598
commit 2ae893120e

View File

@ -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;
}
}