-
Notifications
You must be signed in to change notification settings - Fork 979
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
Invalid phpdoc (list instead of string) #1423
Comments
Looks like most of them are actually pulled though this:
Meaning the lib internally will convert an actual list to a comma-separated string. So probably the type should be updated to |
Thanks.
edit: actually on putSettings, |
There is a PR to fix the optional part: #1426 |
In your phpdoc, by example
vendor/elasticsearch/elasticsearch/src/Endpoints/Indices.php
You use
list
to describecomma-separated list of index names
, so a string.However, a list means an array of numerical indexes starting at 0.
I have updated phpstan to 2.1.6, and now (probably due to
TypeParser - support comments at EOL with // (https://github.com/phpstan/phpdoc-parser/pull/264), https://github.com/phpstan/phpdoc-parser/issues/184, thanks @shmax!
), it requires an array (list) instead of stringThe text was updated successfully, but these errors were encountered: