Skip to content

[Feature Request]: Parameter and return value types for macros #1374

Description

@smares

Feature Description

Is it possible to override the parameter or return types for macros? I would like to be able to narrow-down types that are not natively supported by PHP, such as string[], int-mask, generics, etc.

PHPStan currently does not support PHPDoc for anonymous functions, but is that something Laravel Idea could support?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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