| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | $this->abstractProvider = new class extends AbstractProvider { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param int $page |
||
| 27 | * @return UrlBuilderInterface |
||
| 28 | */ |
||
| 29 | protected function createUrl(int $page): UrlBuilderInterface |
||
| 30 | { |
||
| 31 | // TODO: Implement createUrl() method. |
||
| 32 | } |
||
|
|
|||
| 33 | |||
| 34 | /** |
||
| 35 | * @return ParseRulesBuilder |
||
| 36 | */ |
||
| 37 | protected function createParseRules(): ParseRulesBuilder |
||
| 39 | // TODO: Implement createParseRules() method. |
||
| 40 | } |
||
| 49 | } |
For hinted functions/methods where all return statements with the correct type are only reachable via conditions, ?null? gets implicitly returned which may be incompatible with the hinted type. Let?s take a look at an example: