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.

0
4 comments

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?

0
Avatar
Permanently deleted user

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.

0

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

0
Avatar
Permanently deleted user

Thank you, i will do that.

0

Please sign in to leave a comment.