lint/style/prefer-instanceof-stringable
In the coding-style set. Report only.
What it does
Detects the legacy pattern is_object($x) && method_exists($x, '__toString') and suggests
Configuration
[lint.rules]
"style/prefer-instanceof-stringable" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
instanceof-stringable(mago-linter)