Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class SteamParserFactoryTest extends TestCase |
||
15 | { |
||
16 | private AbstractProvider $abstractProvider; |
||
17 | |||
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 | } |
||
31 | }; |
||
32 | } |
||
33 | |||
34 | public function testSuccessCreating(): void |
||
38 | } |
||
39 | } |
||
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: