We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 805e838 commit 7fc88ebCopy full SHA for 7fc88eb
src/Rule/Nette/PresenterInjectedPropertiesExtension.php
@@ -21,7 +21,7 @@ public function isAlwaysWritten(PropertyReflection $property, string $propertyNa
21
public function isInitialized(PropertyReflection $property, string $propertyName): bool
22
{
23
return $property->isPublic() &&
24
- $property->getDeclaringClass()->isSubclassOf('Nette\Application\UI\Presenter') &&
+ $property->getDeclaringClass()->implementsInterface('Nette\Application\IPresenter') &&
25
strpos($property->getDocComment() ?? '', '@inject') !== false;
26
}
27
0 commit comments