| 1 | <?php |
||
| 11 | class SpecialDiceFactory implements DiceFactory |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var callable[] |
||
| 15 | */ |
||
| 16 | private $diceTypeCallbacks; |
||
| 17 | |||
| 18 | public function __construct() |
||
| 30 | |||
| 31 | |||
| 32 | public function handlesType(string $type) : bool |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $type |
||
| 42 | * @param int $number |
||
| 43 | * @return Dice[] |
||
| 44 | */ |
||
| 45 | public function buildDice(string $type, int $number) : array |
||
| 50 | |||
| 51 | private function normaliseType(string $type): string |
||
| 55 | } |
||
| 56 |
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..