Skip to content

Generics #6

Closed
Closed
@mvriel

Description

@mvriel

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions