Skip to content

Static analyzer/Intellisense not happy #1

@mbolli

Description

@mbolli

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions