-
Notifications
You must be signed in to change notification settings - Fork 981
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
Psalm 5.14.0 and higher triggers issues with defined array-shapes #1346
Comments
@jaytaph thanks for this PR, I'll have a look. Your proposal sounds good. I need to update the code generator, since these comments are generated using a separate tool. |
@ezimuel Where can I find the codegen? I'd like to give it a shot. |
@ezimuel what is the current status and planning for this issue? |
@ezimuel again my question since you did not (yet) give us any answers. what is the current status and planning for resolving this issue? |
Hi! @ezimuel are there any updates? |
@pluk , @reinschaap, @MidnightDesign @jaytaph I'm working on this issue, discussed also in #1423, #1424, #1425. Sorry for the late reply. |
thanks for the update. Is there any reason to have the generator not open source ? |
@momala454 We do not believe that the PHP code generator would provide value to the open-source community, and as a company policy, we have chosen not to release it publicly. Moreover, the code contains many Elastic specific details about our CI systems. |
I just sent this PR #1439 to fix the issue |
dead link |
I think he means to link here: https://github.com/elastic/elasticsearch-specification |
Array shape declaration of certain methods are not compatible with psalm 5.14.0+.
This works correctly in psalm 5.13.1 or lower, but at 5.14.0 there has been some changes that will generate errors when not given all keys found in the definition.
This will probably function properly by adding a ? after the keyname in the array-shape.
See:
https://psalm.dev/r/fae4b76358 vs https://psalm.dev/r/9b72fe22b5
The text was updated successfully, but these errors were encountered: