phpinspectionsea icon indicating copy to clipboard operation
phpinspectionsea copied to clipboard

Incorrectly suggests using str_ends_with() when language level is below 8

Open Stevehans opened this issue 1 year ago • 1 comments

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

Stevehans avatar Nov 08 '23 17:11 Stevehans

Unless a PHP8 polyfill like https://github.com/symfony/polyfill-php80 is installed.

COil avatar Feb 04 '24 10:02 COil