Skip to content

Improve typehinting for Item value #46

@gapple

Description

@gapple

The Item class' value property (via TupleTrait) is typehinted to mixed, but it should more specifically be bool|float|int|string|Bytes|Date|DisplayString|Token, though it would be a little simpler if the classes that decorate special types had a common interface or base class.

I ran into some quirks getting PhpStorm to understand either a phpstan global alias or a local alias on the Item class that was imported elsewhere.

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