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(PropertyReflection $property, string $propertyName): bool
|
# |
public
|
isAlwaysWritten(PropertyReflection $property, string $propertyName): bool
|
# |
public
|
isInitialized(PropertyReflection $property, string $propertyName): bool
|
# |