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...
25
}
26
27
/**
28
* @throws InvalidArgumentException
29
*/
30
protected static function assertIndex(int $index): void