Phpinspectionsea: False Positive: Nullsafe operator

Created on 31 Dec 2020  路  5Comments  路  Source: kalessil/phpinspectionsea

| Subject | Details |
| :------------- | :---------------------------------------------------------------------------- |
| Plugin | Php Inspections (EA Ultimate), 3.0.10 |
| Language level | 8.0 |

Current behaviour

EA shows an error if a method of a nullable object is used with nullsafe operator. (Please excause the horrible colors. I am working on a color scheme that looks less like an acid-trip but is still good readable.)

False Positive - Nullsafe operator

Expected behaviour

PHP8 supports the nullsafe operator: PHP 8: the null safe operator. With that feature the "Null pointer exception may occur here." is obsolete if used. PHPStorm already detects that.

bug / false-positive fixed

Most helpful comment

Folks, this has been fixed now. We'll rollout hot-fix releases for all plugins next week.

All 5 comments

+1 on this, php8 has been out for a while now, so would be great if this could be sorted, I don't particularly want to disable the 'Null reference' inspection.

Very interested in support for this, too 馃榿

So do i 馃憣

Came across this today, would be great to see this fixed!

Folks, this has been fixed now. We'll rollout hot-fix releases for all plugins next week.

Was this page helpful?
0 / 5 - 0 ratings