1 | <?php |
||
9 | class EntityRouteLoader extends Loader |
||
10 | { |
||
11 | const RESOURCE_TYPE = 'cruds_mount'; |
||
12 | /** @var CrudsRoute[][] */ |
||
13 | private $routes = []; |
||
14 | /** @var bool[] */ |
||
15 | private $loaded = []; |
||
16 | |||
17 | /** {@inheritdoc} */ |
||
18 | 12 | public function load($mount, $type = null) |
|
35 | |||
36 | /** {@inheritdoc} */ |
||
37 | 12 | public function supports($mount, $type = null) |
|
41 | |||
42 | 12 | public function addRoute($mount, $name, $path, $controller, array $methods, array $options = []) |
|
48 | |||
49 | /** |
||
50 | * @param $resource |
||
51 | */ |
||
52 | 12 | private function assertLoaded($resource) |
|
58 | |||
59 | /** |
||
60 | * @param string $mount |
||
61 | * |
||
62 | * @return CrudsRoute[] |
||
63 | */ |
||
64 | public function getRoutes($mount) |
||
72 | |||
73 | /** |
||
74 | * @return string[] |
||
75 | */ |
||
76 | public function getMounts() |
||
80 | } |
||
81 |
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..