| Total Lines | 12 |
| Code Lines | 1 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function setUp(): void |
||
| 19 | { |
||
| 20 | $this->abstractProvider = new class () extends AbstractProvider { |
||
| 21 | protected function createUrl(int $page): UrlBuilderInterface |
||
| 22 | { |
||
| 23 | } |
||
|
|
|||
| 24 | |||
| 25 | /** |
||
| 26 | * @return ParseRulesBuilder |
||
| 27 | */ |
||
| 28 | protected function createParseRules(): ParseRulesBuilder |
||
| 29 | { |
||
| 30 | } |
||
| 40 |
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: