Null pointer exception ignored with typed class properties

Hello folks,

I'm having an issue with null pointer inspections in idea ultimate build #IE-202.8194.7 (nov 24 2020) with regards to typed class properties. Here is a snippet on which the inpection fails.

It maybe due to incorrect IDE settings or something, but I just can't figure it out. Anyone having the same issue or have any clue on where to go from here?

https://pastebin.com/zvTXfic9

 

 

0

Hi there,

Please show the screenshot of the popup with the warning details.

For me the inspection name starts with "[EA]" which stands for inspection provided by the 3rd party "Php Inspections (EA Extended)" plugin. You better ask the plugin author about this: https://github.com/kalessil/phpinspectionsea

From PhpStorm side of things .. I guess it could be https://youtrack.jetbrains.com/issue/WI-15078 (you can check other tickets: maybe you will find something more suitable .. or just file your own: https://youtrack.jetbrains.com/issues/WI?q=nullable )

0
Avatar
Permanently deleted user

Ah, you are correct Andriy, it's from the 3rd party plugin, my incorrect assumption was that this is provided by the official PHP plugin. Thank you for the clarification.

 

For others stumbling upon the issue, these could be related as well:

https://github.com/kalessil/phpinspectionsea/issues/1563

https://github.com/kalessil/phpinspectionsea/issues/1552

0

请先登录再写评论。