$this of type Bavix\Router\Resolable is incompatible with the type null|Bavix\Router\Rule expected by parameter $parent of Bavix\Router\Loader::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
18
return (new Loader($this->resolver, /** @scrutinizer ignore-type */ $this))->routes();