lint/php-7.3/prefer-is-countable
In the lint-recommended preset and every stricter one. In Rector’s rector/php-polyfills, rector/php73 sets. Safe fix. Runs only when [php] version is 7.3 or later.
What it does
Changes is_array + Countable check to is_countable
Configuration
[lint.rules]
"php-7.3/prefer-is-countable" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
IsCountable(rector)