Skip to content

Commit 73c7eff

Browse files
committed
[Code] Remov eBC for PHP-Parser 4.x.
1 parent 21eed98 commit 73c7eff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Rules/Drupal/Tests/BrowserTestBaseDefaultThemeRule.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ public function processNode(Node $node, Scope $scope): array
4646

4747
// Do some cheap preflight tests to make sure the class is in a
4848
// namespace that makes sense to inspect.
49-
// @phpstan-ignore-next-line
50-
$parts = method_exists($node->namespacedName, 'getParts') ? $node->namespacedName->getParts() : $node->namespacedName->parts;
49+
$parts = $node->namespacedName->getParts();
5150
// The namespace is too short to be a test so skip inspection.
5251
if (count($parts) < 3) {
5352
return [];

0 commit comments

Comments
 (0)