Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix phpstan
  • Loading branch information
samsonasik committed Apr 5, 2026
commit 7c40c7e3a14e5543440edcb08dca198c718c821a
4 changes: 2 additions & 2 deletions rules/CodeQuality/Rector/Coalesce/CoalesceToTernaryRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ public function refactor(Node $node): ?Node
$scope = ScopeFetcher::fetch($node);
$nativeType = $scope->getNativeType($node->left);

if ($nativeType instanceof MixedType) {
if ($nativeType instanceof ErrorType) {
return null;
}

if ($nativeType instanceof ErrorType) {
if ($nativeType instanceof MixedType) {
return null;
}

Expand Down
Loading