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

Add workaround for Closure::__invoke

This commit is contained in:
Matthew Brown 2018-05-12 13:02:53 -04:00
parent 4fe5ac87b6
commit 313a010355

View File

@ -183,7 +183,7 @@ class MethodChecker extends FunctionLikeChecker
if (!$declaring_method_id) {
$method_name = explode('::', $method_id)[1];
if ($method_name === '__construct') {
if ($method_name === '__construct' || $method_id === 'Closure::__invoke') {
return null;
}