I installed the latest version (Oxygen) of Eclipse for PHP. But now there are many annotations of errors, which, I think, they should not be.
Almost all of them are related to the exception:
throw new Exception('Exception message');
The annotation message in the tooltip of the pop-up window looks like this:
An exception cannot be allowed for the type
And the tooltip offers me some quick fixes that use the Exception class declared in libraries imported using Composer.
Why? As far as I know, Exception is still an inner class of PHP (it does not need to be imported). I know that I should use more specific Exception classes, but for now Exception works for me. And this should not be flagged as a bug in Eclipse. Previous versions did not find this as an error. In addition, the application works without problems.
This is mistake? Otherwise, how to disable annotation of this type of error?
EDIT:
Another nasty problem is that the code helper does not display any php internal function. Only functions, classes, and methods declared in my application or in imported libraries. For example, if I type:
st
Doctrine, Geocoder .. , "strip_quotes", strstr, str_pad, strpos strong > ..