Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class CMSMiddlewareServiceProvider implements ServiceProviderInterface |
||
17 | { |
||
18 | |||
19 | public function getFactories() |
||
23 | ]; |
||
24 | } |
||
25 | |||
26 | public function getExtensions() |
||
30 | ]; |
||
31 | } |
||
32 | |||
33 | |||
34 | public static function createCmsMiddleware(ContainerInterface $container): CMSMiddleware |
||
37 | } |
||
38 | |||
39 | public static function updatePriorityQueue(ContainerInterface $container, \SplPriorityQueue $queue = null) : \SplPriorityQueue |
||
45 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: