File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ public function specifyTypesInCondition(
453
453
454
454
if (
455
455
!$ context ->null ()
456
- && $ expr ->right instanceof FuncCall
456
+ && $ expr ->right instanceof Expr \CallLike
457
457
) {
458
458
$ newScope = $ scope ->filterBySpecifiedTypes ($ result );
459
459
$ callType = $ newScope ->getType ($ expr ->right );
@@ -1954,13 +1954,13 @@ private function createSpecifierContextReturnType(
1954
1954
TypeSpecifierContext $ context ,
1955
1955
): TypeSpecifierContext
1956
1956
{
1957
- if ($ context ->true ()) {
1957
+ // if ($context->true()) {
1958
1958
return TypeSpecifierContext::createTrue ($ contextReturnType );
1959
- } elseif ($ context ->false ()) {
1960
- return TypeSpecifierContext::createFalse ($ contextReturnType );
1961
- }
1959
+ // } elseif ($context->false()) {
1960
+ // return TypeSpecifierContext::createFalse($contextReturnType);
1961
+ // }
1962
1962
1963
- return $ context ;
1963
+ // return $context;
1964
1964
}
1965
1965
1966
1966
public function resolveEqual (Expr \BinaryOp \Equal $ expr , Scope $ scope , TypeSpecifierContext $ context ): SpecifiedTypes
You can’t perform that action at this time.
0 commit comments