It seems like array('steve' => functio...Api\Dice\FateDice(); }) of type array<string,object<Clos...te":"object<Closure>"}> is incompatible with the declared type array<integer,callable> of property $diceTypeMappings.
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..
Loading history...
17
'steve' => function () {
18
return new Dice\SteveDice();
19
},
20
'fate' => function () {
21
return new Dice\FateDice();
22
},
23
];
24
}
25
26
27
public function handlesType(string $type) : bool
28
{
29
return array_key_exists(
30
$this->normaliseType($type),
31
$this->diceTypeMappings
32
);
33
}
34
35
/**
36
* @param string $type
37
* @param int $number
38
* @return Dice[]
39
*/
40
public function buildDice(string $type, int $number) : array
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..