| Total Complexity | 5 | 
| Total Lines | 37 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 14 | class TestKernel extends Kernel  | 
            ||
| 15 | { | 
            ||
| 16 | /**  | 
            ||
| 17 |      * {@inheritDoc} | 
            ||
| 18 | *  | 
            ||
| 19 | * @return iterable  | 
            ||
| 20 | */  | 
            ||
| 21 | public function registerBundles(): iterable  | 
            ||
| 29 | }  | 
            ||
| 30 | }  | 
            ||
| 31 | }  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 |      * {@inheritDoc} | 
            ||
| 35 | *  | 
            ||
| 36 | * @return string  | 
            ||
| 37 | */  | 
            ||
| 38 | public function getRootDir(): string  | 
            ||
| 39 |     { | 
            ||
| 40 | return __DIR__;  | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 43 | /**  | 
            ||
| 44 |      * {@inheritDoc} | 
            ||
| 45 | *  | 
            ||
| 46 | * @return string  | 
            ||
| 47 | */  | 
            ||
| 48 | public function getProjectDir(): string  | 
            ||
| 51 | }  | 
            ||
| 52 | }  | 
            ||
| 53 | 
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: