analyse/types/clone-non-object
In the analyse-essential preset and every stricter one. Report only.
Configuration
[analyse.rules]
"types/clone-non-object" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
VariableCloningRule(phpstan-classes)InvalidClone(mago-analyzer)clone.nonObject(phpstan)