lint/php-8.0/prefer-get-debug-type
In the lint-strict preset. In Rector’s rector/php-polyfills, rector/php80 sets. Unsafe fix: it can change behavior. Runs only when [php] version is 8.0 or later.
What it does
Change ternary type resolve to get_debug_type()
Configuration
[lint.rules]
"php-8.0/prefer-get-debug-type" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
GetDebugType(rector)