phpinspectionsea
phpinspectionsea copied to clipboard
Incorrectly suggests using str_ends_with() when language level is below 8
Subject | Details |
---|---|
Plugin | Php Inspections (EA Ultimate), 2023.1 |
Language level | e.g. PHP 7.3 |
Current behaviour
suggests that str_ends_with() could be used
Expected behaviour
Should not make this suggestion with 7.3 as the language level as this is not available until 8
Unless a PHP8 polyfill like https://github.com/symfony/polyfill-php80 is installed.