Skip to content

Return type of getValues() #36

Closed
Closed
@holtkamp

Description

@holtkamp

Currently the PHPDoc return type of getValues() is an array.

Would it be an idea to change that to:

/**
 * @return Enum[]
 */

This would allow proper code completion, for example:

foreach(Locales::getValues() as $locale){
    echo $locale->getValue(); //This currently results in a warning
}

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