| Total Complexity | 7 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class ClassReflectorRouteLoader implements RouteLoaderInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string[] |
||
| 17 | */ |
||
| 18 | private array $directories = []; |
||
| 19 | |||
| 20 | public function __construct(private ClassReflectorFactory $reflectorFactory) |
||
| 21 | { |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getDirectories() : array |
||
| 27 | } |
||
| 28 | |||
| 29 | public function addDirectory(string ...$directories) : RouteLoaderInterface |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getRoutes() : Generator |
||
| 52 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..