Skip to content

Add type hint to when passing options to class (instead of simple array) #2

@mrself

Description

@mrself

It would be nice if options definitions support type hint. Array is like a hardcoding of options. Mistakes possibility is very high.

Preliminary example:

MyClass::options()->option1('option1)->option2('option2')

This may be achieved by files reconstructing like Symfony does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions