Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static analyzer/Intellisense not happy #1

Open
mbolli opened this issue Mar 8, 2024 · 0 comments
Open

Static analyzer/Intellisense not happy #1

mbolli opened this issue Mar 8, 2024 · 0 comments

Comments

@mbolli
Copy link

mbolli commented Mar 8, 2024

Hi, thanks for this interesting piece of software!

I'm trying to use it in a prototype, but I stumbled on something that would hopefully be easy to fix:

RouteAbstract::add() returns RouteAbstract instead of static -> This means that PhpStan (and PhpStorm) show an error when having e.g.

$routes = Route::add('_controller')
    ->default('login')
    ->group(self::getControllers(...))
;

or

Route::add()->get();

Phpstan errors:

Call to an undefined method Ertuo\RouteAbstract::group(). 
Call to an undefined method Ertuo\RouteAbstract::get().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant