Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
timvandijck authored and github-actions[bot] committed Dec 9, 2024
1 parent 21b3da9 commit c5dbda0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/PHPStan/RemainingRayCallRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ public function processNode(Node $node, Scope $scope): array
}

// Backwards compatibility with PHPStan 1.x.
if (!method_exists($node->name, 'getParts')) {
if ($node->name->parts[0] !== 'ray') {
return [];
}
if (! method_exists($node->name, 'getParts')) {
if ($node->name->parts[0] !== 'ray') {
return [];
}
} else {
if ($node->name->getParts()[0] !== 'ray') {
return [];
}
if ($node->name->getParts()[0] !== 'ray') {
return [];
}
}

return [
Expand Down

0 comments on commit c5dbda0

Please sign in to comment.