It seems like array('steve' => array($this, 'buildSteveDice')) of type array<string,array<integ...",\"1\":\"string\"}>"}> is incompatible with the declared type array<integer,callable> of property $diceTypeCallbacks.
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...
21
'steve' => [$this, 'buildSteveDice']
22
];
23
}
24
25
26
public function handlesType(string $type) : bool
27
{
28
return array_key_exists(
29
$this->normaliseType($type),
30
$this->diceTypeCallbacks
31
);
32
}
33
34
/**
35
* @param string $type
36
* @param int $number
37
* @return Dice[]
38
*/
39
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..