lint/types/prefer-instanceof
In the code-quality set. Unsafe fix: it can change behaviour.
What it does
Use instanceof instead of is_a(), null checks or truthiness checks on nullable objects.
Configuration
[lint.rules]
"types/prefer-instanceof" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
InlineIsAInstanceOf(rector)