| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public static function createCmsMiddleware(ContainerInterface $container): CMSMiddleware |
||
| 35 | { |
||
| 36 | return new CMSMiddleware($container->get(PageRegistryInterface::class), $container->get(BlockRendererInterface::class)); |
||
| 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: