Skip to content

Commit 7fc88eb

Browse files
rattusczondrejmirtes
authored andcommitted
Use IPresenter implementations for check
1 parent 805e838 commit 7fc88eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rule/Nette/PresenterInjectedPropertiesExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function isAlwaysWritten(PropertyReflection $property, string $propertyNa
2121
public function isInitialized(PropertyReflection $property, string $propertyName): bool
2222
{
2323
return $property->isPublic() &&
24-
$property->getDeclaringClass()->isSubclassOf('Nette\Application\UI\Presenter') &&
24+
$property->getDeclaringClass()->implementsInterface('Nette\Application\IPresenter') &&
2525
strpos($property->getDocComment() ?? '', '@inject') !== false;
2626
}
2727

0 commit comments

Comments
 (0)