Skip to content

PHPStan fails to compile #22

@AlexanderAllen

Description

@AlexanderAllen

I've been asserting the functor laws locally for fun and I am observing that PHPStan fails to compile on some generics.

For example, FunctionalPHP\FantasyLand\Functor: https://phpstan.org/r/fef7dc4c-8448-4c36-9e25-92f78145b7fe

I haven't tested all functors or laws yet (in the process of doing so), but thought I would make a note of it.

If I manage to assert laws and generic accuracy for all the objects listed by this spec, I'll issue a PR.

I really want to use this spec as opposed to reinventing the wheel (who wants to do that), but I do not want to implement this until the generics are rock solid.

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