The expression return self::colors could return the type null which is incompatible with the type-hinted return array. Consider adding an additional type-check to rule them out.
Loading history...
28
}
29
30
/**
31
* @throws InvalidArgumentException
32
*/
33
protected static function assertIndex(int $index): void