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:
parent
4fe5ac87b6
commit
313a010355
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user