Is there a way to make a class taboo in code completion ?

When I want to throw a new RuntimeException, the first result coming up in the autocompletion is the \http\Exception\RuntimeException one.

It is little problematic, and easy to fix once found, but this behavior seems weird to me.

I don't know if that changes anything, but there are no references to http's RuntimeException in my project.

1

I don't know what it depends on but in my machine I always get `\RuntimeException` first.

Whatever, if you click on `http\Exception\RuntimeException` to see where it comes from you navigate to a stub for PECL HTTP version 3.x. If you search for "php runtime" in program settings you can disable "PECL / http" and it's no longer suggested.

1

@Pierre-Antoine Guillaume

As Álvaro González have said -- that particular item comes from bundled stubs.

You can disable stubs for unwanted extensions at "Settings/Preferences | Languages & Frameworks | PHP | PHP Runtime"

0

请先登录再写评论。