analyse/classes/get-hook-without-read
In the analyse-essential preset and every stricter one. Report only.
Configuration
[analyse.rules]
"classes/get-hook-without-read" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
GetNonVirtualPropertyHookReadRule(phpstan-classes)propertyGetHook.noRead(phpstan)