Skip to content

Commit 420456b

Browse files
use isFinalByKeyword
1 parent c0b306a commit 420456b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/TypeDeclaration/Rector/ClassMethod/NarrowObjectReturnTypeRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private function isDeclaredTypeFinal(string $declaredType): bool
160160
return false;
161161
}
162162

163-
return $classReflection->isFinal();
163+
return $classReflection->isFinalByKeyword();
164164
}
165165

166166
private function isActualTypeAnonymous(string $actualType): bool

0 commit comments

Comments
 (0)