1 | <?php |
||
8 | class PlayOffTreeGen extends TreeGen |
||
9 | { |
||
10 | /** |
||
11 | * Calculate the Byes need to fill the Championship Tree. |
||
12 | * @param Championship $championship |
||
13 | * @return Collection |
||
14 | */ |
||
15 | protected function getByeGroup(Championship $championship, $fighters) |
||
28 | |||
29 | |||
30 | /** |
||
31 | * Create empty groups for direct Elimination Tree |
||
32 | * @param $numFighters |
||
33 | */ |
||
34 | public function pushEmptyGroupsToTree($numFighters) |
||
41 | } |
||
42 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: