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

Spaces in asserted types #2148

Closed
zerkms opened this issue Sep 18, 2019 · 0 comments
Closed

Spaces in asserted types #2148

zerkms opened this issue Sep 18, 2019 · 0 comments

Comments

@zerkms
Copy link
Contributor

zerkms commented Sep 18, 2019

Not sure if it's duplicate or related to #2067 so posting separately.

When @psalm-assert follows the array generic type with spaces inside the docblock parser fails to properly parse it.

https://psalm.dev/r/e4936dc5e4

<?php
  
/**
 * @psalm-assert array<string, string[]> $data
 * @param mixed $data
 */
function isArrayOfStrings($data): void {}
@muglug muglug closed this as completed in 0ae04c9 Sep 22, 2019
2e3s pushed a commit to 2e3s/psalm that referenced this issue Sep 29, 2019
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

1 participant