This is the extension interface to implement if you want to describe always-read or always-written properties.
To register it in the configuration file use the phpstan.properties.readWriteExtension
service tag:
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.properties.readWriteExtension
Learn more: https://phpstan.org/developing-extensions/always-read-written-properties
Methods | ||
---|---|---|
public
|
isAlwaysRead(ExtendedPropertyReflection $property, string $propertyName): bool
|
# |
public
|
isAlwaysWritten(ExtendedPropertyReflection $property, string $propertyName): bool
|
# |
public
|
isInitialized(ExtendedPropertyReflection $property, string $propertyName): bool
|
# |