Skip to content

Commit 7c40c7e

Browse files
committed
Fix phpstan
1 parent 5fb5718 commit 7c40c7e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rules/CodeQuality/Rector/Coalesce/CoalesceToTernaryRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ public function refactor(Node $node): ?Node
7272
$scope = ScopeFetcher::fetch($node);
7373
$nativeType = $scope->getNativeType($node->left);
7474

75-
if ($nativeType instanceof MixedType) {
75+
if ($nativeType instanceof ErrorType) {
7676
return null;
7777
}
7878

79-
if ($nativeType instanceof ErrorType) {
79+
if ($nativeType instanceof MixedType) {
8080
return null;
8181
}
8282

0 commit comments

Comments
 (0)