Skip to content

Commit 4a2af56

Browse files
committed
fixup! Add stringable access check to ClassConstantRule
1 parent 1a21727 commit 4a2af56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Rules/Classes/ClassConstantRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ public function processNode(Node $node, Scope $scope): array
6969
}
7070

7171
if ($this->checkNonStringableDynamicAccess) {
72-
$typeResult = $this->ruleLevelHelper->findTypeToCheck(
72+
$nameTypeResult = $this->ruleLevelHelper->findTypeToCheck(
7373
$scope,
7474
$node->name,
7575
'',
7676
static fn (Type $type) => $type->isString()->yes(),
7777
);
7878

79-
$type = $typeResult->getType();
79+
$type = $nameTypeResult->getType();
8080

8181
if (!$type->isString()->yes()) {
8282
$className = $node->class instanceof Name

0 commit comments

Comments
 (0)