| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class SteamParserFactoryTest extends TestCase |
||
| 15 | { |
||
| 16 | private AbstractProvider $abstractProvider; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return void |
||
| 20 | */ |
||
| 21 | public function setUp(): void |
||
| 22 | { |
||
| 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 |
||
| 38 | { |
||
| 39 | // TODO: Implement createParseRules() method. |
||
| 40 | } |
||
| 41 | }; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function testSuccessCreating(): void |
||
| 48 | } |
||
| 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: