Passed
Push — master ( 65b336...1323cd )
by Бабичев
44s
created

src/Router/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 2
    public function resolver(): \Generator
17
    {
18 2
        return (new Loader($this->resolver, $this))->routes();
0 ignored issues
show
$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();
Loading history...
19
    }
20
21
}
22