Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 6, 2024
1 parent 73beda0 commit e967196
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rules/Php80/Rector/Switch_/ChangeSwitchToMatchRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ public function refactor(Node $node): ?Node
return null;
}

private function castMatchCond(Match_ $match)
private function castMatchCond(Match_ $match): void
{
$nativeCond = $this->nodeTypeResolver->getNativeType($match->cond);
$isNativeCondString = $nativeCond->isString()->yes();
$isNativeCondInt = $nativeCond->isInteger()->yes();
$type = $this->nodeTypeResolver->getNativeType($match->cond);
$isNativeCondString = $type->isString()->yes();
$isNativeCondInt = $type->isInteger()->yes();

if (! $isNativeCondString && ! $isNativeCondInt) {
return;
Expand Down

0 comments on commit e967196

Please sign in to comment.