Closed
Description
Currently it is not possible to define the type of a key and a value contained in a collection object, Generics intends to solve this.
Example:
- Define a collection with integer values:
@param Collection<int> $byte
- Define a collection with integer keys and string values:
@param Collection<int,string> $byte
- Define a collection with integer or string values:
@param Collection<int|string> $byte
Metadata
Metadata
Assignees
Labels
No labels