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 with optional values #3357

Closed
ComiR opened this issue May 28, 2020 · 1 comment
Closed

Array shapes with optional values #3357

ComiR opened this issue May 28, 2020 · 1 comment
Labels
Milestone

Comments

@ComiR
Copy link

ComiR commented May 28, 2020

Bug report

Optional array values are seemingly required.

Code snippet that reproduces the problem

Array with only one optional value: https://phpstan.org/r/8473da76-2e56-4c54-8c95-759431dbdfde

Array with a required and an optional value: https://phpstan.org/r/34641f8c-a839-43d2-a2ea-bf87638c24cc

Expected output

An array shape with optional values may have them missing.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants