Code inspection does not include PHP Language Level
Hello,
i have tried to change the PHP language level inside the settings so the Code Inspection will give me warnings for functions that are not compatible with the current php version. However i dont get any warning for those functions. In the Inspections settings i allready checked if the Language Level is selected and did a restart/invalidate caches.
Is there anything else i need to change? I would be glad if anyone knows what could be the problem or if there are other settings that need to be accounted for.
Thanks in advance.
Please sign in to leave a comment.
Changing language level at File | Settings | Languages & Frameworks | PHP is enough for language-level checks.
Do you have an example where this doesn't work to share?
Hi Dmitry,
yes i have tried all the new core functions from 7.3 but none were highlighted. I first noticed it when working with array_key_first() and array_key_last() while having tried all the language levels under 7.3
I could try more if that helps.
Unfortunately, the inspection only checks the syntax and deprecated symbols, but not symbols that are not available in older versions.
Please vote: https://youtrack.jetbrains.com/issue/WI-49299
Thank you, i will do that.