Skip to content

Feature Request: Support PHPStan type aliases #428

Description

@Grldk

Description

In our codebase we use both global and local phpstan type aliases.

These do not seem to work in PHPantom. This code shows this error:

$this->subject->setProperty('prop', $value);

// Argument 2 ($value) expects ?App\Traits\Models\PropertyValue, got 1 phpantom(type_mismatch_argument)

PropertyValue is a global phpstan alias in this code, defined in phpstan.neon.dist, and should accept int. PHPStan does not report errors on this line.

Wasn't sure if I should create this issue here or in the vsix repo, but don't think its a specific vsix problem.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions