mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
parent
6d572096d6
commit
e97750c761
@ -157,7 +157,11 @@ abstract class FunctionLikeChecker extends SourceChecker implements StatementsSo
|
|||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
$declaring_method_id = (string) $codebase->methods->getDeclaringMethodId($method_id);
|
$declaring_method_id = $codebase->methods->getDeclaringMethodId($method_id);
|
||||||
|
|
||||||
|
if (!$declaring_method_id) {
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
|
|
||||||
// happens for fake constructors
|
// happens for fake constructors
|
||||||
$storage = $codebase->methods->getStorage($declaring_method_id);
|
$storage = $codebase->methods->getStorage($declaring_method_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user