PhpStorm gives me full IntelliSense when I use the instructions above. For example:
use Framework\MVC\Route;
Route::setRoutes($routes);
But I use class_aliashow [does not even work in one file]:
class_alias("Framework\\MVC\\Route", "Route");
Now that I am writing Route::, I am not getting IntelliSense. In fact, it even shows some warning talking about an unknown class Route. How can I solve this problem?
source
share