Skip to content

Commit

Permalink
Update TypeSpecifier.php
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jun 25, 2024
1 parent 3b60af4 commit 22ea0a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Analyser/TypeSpecifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -1869,7 +1869,7 @@ private function getTypeSpecifyingExtensionsForType(array $extensions, string $c
return array_merge(...$extensionsForClass);
}

private function specifyComparisonViaExtensions(
private function specifyWithComparisonAwareTypeSpecifyingExtensions(
Expr\BinaryOp $binaryOp,
Expr $callExpr,
Expr\CallLike $callLike,
Expand Down Expand Up @@ -1948,7 +1948,7 @@ public function resolveEqual(Expr\BinaryOp\Equal $expr, Scope $scope, TypeSpecif
if (
$exprNode instanceof Expr\CallLike
) {
$specifiedTypes = $this->specifyComparisonViaExtensions(
$specifiedTypes = $this->specifyWithComparisonAwareTypeSpecifyingExtensions(
$expr,
$exprNode,
$exprNode,
Expand Down Expand Up @@ -2054,7 +2054,7 @@ public function resolveIdentical(Expr\BinaryOp\Identical $expr, Scope $scope, Ty
$unwrappedLeftExpr instanceof FuncCall
&& $unwrappedLeftExpr->name instanceof Name
) {
$specifiedTypes = $this->specifyComparisonViaExtensions(
$specifiedTypes = $this->specifyWithComparisonAwareTypeSpecifyingExtensions(
$expr,
$leftExpr,
$unwrappedLeftExpr,
Expand Down

0 comments on commit 22ea0a9

Please sign in to comment.