Skip to content

Commit 4538d2f

Browse files
committed
Use isFinalByKeyword instead of isFinal
@Final is just a PHPDoc convention with no runtime enforcement, so a child class can still extend and override property visibility.
1 parent 40cce7a commit 4538d2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Type/Php/ArrayColumnHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private function getOffsetOrProperty(Type $type, Type $offsetOrProperty, Scope $
159159
return [new MixedType(), TrinaryLogic::createMaybe()];
160160
}
161161

162-
if (!$classReflection->isFinal()) {
162+
if (!$classReflection->isFinalByKeyword()) {
163163
if ($property->isPrivate()) {
164164
return [new MixedType(), TrinaryLogic::createMaybe()];
165165
}

0 commit comments

Comments
 (0)