Extensions implementing this interface are called for each analysed property access. Extension can decide to create RestrictedUsage object with error message & error identifier to be reported for this property access. Typical usage is to report errors for properties marked as @-deprecated or @-internal. To register it in the configuration file use the following tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.restrictedPropertyUsageExtension
Methods | ||
---|---|---|
public
|
isRestrictedPropertyUsage(ExtendedPropertyReflection $propertyReflection, Scope $scope): ?RestrictedUsage
|
# |