Skip to content

Commit 854b4a0

Browse files
phpstan-botclaude
andcommitted
Remove redundant parentheses around instanceof check
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7ded3e1 commit 854b4a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Analyser/ExprHandler/NewHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ private function exactInstantiation(MutatingScope $scope, New_ $node, Name $clas
422422
if ($foundProperty !== null) {
423423
$nonFinalObjectType = $isStatic ? new StaticType($nonFinalClassReflection) : new ObjectType($resolvedClassName, classReflection: $nonFinalClassReflection);
424424
$propertyType = TypeCombinator::intersect($foundProperty->getWritableType(), $nonFinalObjectType);
425-
if (!($propertyType instanceof NeverType)) {
425+
if (!$propertyType instanceof NeverType) {
426426
return $propertyType;
427427
}
428428
}

0 commit comments

Comments
 (0)