Skip to content

Commit

Permalink
Update TypeSpecifier.php
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored and clxmstaab committed Sep 23, 2022
1 parent 036a25e commit 901ac31
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/Analyser/TypeSpecifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,15 +360,14 @@ public function specifyTypesInCondition(
);
}

if ($argType instanceof MixedType) {
return $this->create(
$exprNode->getArgs()[0]->value,
TypeCombinator::union($objectType, $classStringType),
$context,
false,
$scope,
);
}
return $this->create(
$exprNode->getArgs()[0]->value,
TypeCombinator::union($objectType, $classStringType),
$context,
false,
$scope,
);

}
}

Expand Down

0 comments on commit 901ac31

Please sign in to comment.