The class documentation states:
The class name can be any valid label which is not a PHP reserved word.
Array is a reserved word and, thus, you cannot. PHP has no way (AFAIK) to "escape" these words. Also see this answer.
You need to name your class more specifically (like MyArray
or AnimalList
).