Skip to content

Add psalm annotations to Type classes #6

Open
@lhellemons

Description

@lhellemons

Psalm (vimeo/psalm) is a static code analyzer with extensive support for type checking. Psalm can determine types from PHP type hints, PHPDoc comments and inference from code, but it also supports extended doc annotations that provide more fine-grained type specifications, including templates (generics). These annotations are completely backwards-compatible.

value objects has various classes that deal with types (in the SolidPhp\ValueObjects\Type namespace). Adding psalm template annotations to these classes and their methods would enable improved type checking for any project using the value object SDK and psalm, without any drawbacks for projects that don't.

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