We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8a33a8 commit b939e75Copy full SHA for b939e75
1 file changed
src/Analyser/MutatingScope.php
@@ -6390,14 +6390,13 @@ private function getStaticCallType(Expr\StaticCall $node): ?Type
6390
$node,
6391
);
6392
if ($callType === null) {
6393
+ $callType = new ErrorType();
6394
if (
6395
!$node->class instanceof Name
6396
&& count($staticMethodCalledOnType->getObjectClassNames()) === 0
- && !$staticMethodCalledOnType->hasMethod($node->name->toString())->no()
6397
+ && $staticMethodCalledOnType->hasMethod($node->name->toString()) !== TrinaryLogic::createNo()
6398
) {
6399
$callType = new MixedType();
- } else {
6400
- $callType = new ErrorType();
6401
}
6402
6403
0 commit comments