Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array shapes in varType macro #234

Closed
jakubvojacek opened this issue Nov 2, 2020 · 0 comments
Closed

Array shapes in varType macro #234

jakubvojacek opened this issue Nov 2, 2020 · 0 comments

Comments

@jakubvojacek
Copy link

Version: v2.8.2

Bug Description

Array shapes (https://phpstan.org/writing-php-code/phpdoc-types#array-shapes) are not working as expected in the varType macro

Steps To Reproduce

{varType array{0: int, 1: int} $data}

yields error Unexpected content, expecting {varType type $var} in ...

Expected Behavior

I was hoping that this would be supported and that later on, PHPStan would be able to analyze it (not sure whether mesour's plugin will support it as well)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants