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.
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:
PropertyValueis a global phpstan alias in this code, defined inphpstan.neon.dist, and should acceptint. 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.