The bug has appeared in the latest version of PHPStorm.
This is completely the same issue as https://intellij-support.jetbrains.com/hc/en-us/community/posts/206359249-Syntax-errors-not-going-away-even-after-they-are-fixed but ...
- Invalidate Caches doesn't work for me
- Ctrl-X -> Crtl+V part of the code with the bug - this temporary fixes the issue, but it's a bad solution :(
A simple example of the issue:
Does anyone have any idea how to fix this now?