Issues (16)

src/Resolable.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Bavix\Router;
4
5
trait Resolable
6
{
7
8
    /**
9
     * @var array
10
     */
11
    protected $resolver;
12
13
    /**
14
     * @return \Generator
15
     */
16 4
    public function resolver(): \Generator
17
    {
18 4
        return (new Loader($this->resolver, $this))->routes();
0 ignored issues
show
$this of type Bavix\Router\Resolable is incompatible with the type Bavix\Router\Rule|null 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();
Loading history...
19
    }
20
21
}
22