Skip to content

Fixed a bug where the last value was not recognized when passing an associative array as an argument#3668

Merged
ondrejmirtes merged 2 commits intophpstan:2.0.xfrom
sayuprc:resolve-11815
Nov 25, 2024
Merged

Fixed a bug where the last value was not recognized when passing an associative array as an argument#3668
ondrejmirtes merged 2 commits intophpstan:2.0.xfrom
sayuprc:resolve-11815

Conversation

@sayuprc
Copy link
Copy Markdown
Contributor

@sayuprc sayuprc commented Nov 25, 2024

For optional arguments, updated the validation to treat them as non-existent when not provided.

resolve phpstan/phpstan#11815

@sayuprc sayuprc marked this pull request as ready for review November 25, 2024 16:02
@phpstan-bot
Copy link
Copy Markdown
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes ondrejmirtes merged commit 17a6158 into phpstan:2.0.x Nov 25, 2024
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

@sayuprc sayuprc deleted the resolve-11815 branch November 26, 2024 10:41
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

Successfully merging this pull request may close these issues.

Associative array to named parameter incorrectly marked as missing

3 participants