analyse/types/print-non-string
In the analyse-essential preset and every stricter one. Report only.
Configuration
[analyse.rules]
"types/print-non-string" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
PrintRule(phpstan-classes)print.nonString(phpstan)