analyse/deprecated/to-string
In the analyse-basic preset and every stricter one. Report only.
Configuration
[analyse.rules]
"deprecated/to-string" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
RestrictedUsageOfDeprecatedStringCastRule(phpstan-classes)class.toStringDeprecated(phpstan-deprecation-rules)