1 | <?php |
||
11 | class SpecialDiceFactory implements DiceFactory |
||
12 | { |
||
13 | /** |
||
14 | * @var callable[] |
||
15 | */ |
||
16 | private $diceTypeCallbacks; |
||
17 | |||
18 | public function __construct() |
||
24 | |||
25 | |||
26 | public function handlesType(string $type) : bool |
||
33 | |||
34 | /** |
||
35 | * @param string $type |
||
36 | * @param int $number |
||
37 | * @return Dice[] |
||
38 | */ |
||
39 | public function buildDice(string $type, int $number) : array |
||
44 | |||
45 | private function buildSteveDice($_type, $diceCount) |
||
53 | |||
54 | private function normaliseType(string $type): string |
||
58 | } |
||
59 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..