Skip to content

Commit fd357f6

Browse files
committed
[CodeQuality] Skip @Final doc with public property on ConvertStaticToSelfRector
1 parent d636aec commit fd357f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rules/CodeQuality/Rector/Class_/ConvertStaticToSelfRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private function shouldSkip(
149149

150150
$reflection = match (true) {
151151
$node instanceof StaticPropertyFetch => $isFinal
152-
? $classReflection->getProperty($name, $scope)
152+
? $classReflection->getNativeProperty($name)
153153
: $classReflection->getNativeProperty($name),
154154
$node instanceof StaticCall => $isFinal
155155
? $classReflection->getMethod($name, $scope)

0 commit comments

Comments
 (0)