Total Complexity | 3 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait AbstractTeamCreationTrait |
||
10 | { |
||
11 | abstract public function getMaxTeamCost(): int; |
||
12 | public function getTeamCreationOptions(): array |
||
13 | { |
||
14 | } |
||
|
|||
15 | public function getTeamCreationForm(): string |
||
16 | { |
||
17 | return BaseTeamOptionsType::class; |
||
18 | } |
||
19 | public function getTeamCreationResolver(): array |
||
21 | } |
||
22 | } |
||
23 |
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: