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

Handle properly promoted constructor properties default values #574

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

deguif
Copy link
Contributor

@deguif deguif commented Jan 30, 2023

Q A
Bug fix? yes
New feature? yes/no
BC breaks? no
Deprecations? no
Tests pass? yes/no
Fixed tickets
License Apache2

Description

When using constructor promoted properties on constraints, the validation extractor fails with this error:

In ValidationExtractor.php line 181:
                                          
  Warning: Undefined array key "message"

This PR is about to handle default value when using promoted properties.

@goetas goetas merged commit 9250ed8 into schmittjoh:1.x Jan 30, 2023
@goetas
Copy link
Collaborator

goetas commented Jan 30, 2023

thank you!

@deguif deguif deleted the promoted-properties branch January 31, 2023 08:12
@deguif
Copy link
Contributor Author

deguif commented Feb 22, 2023

@goetas could you merge the 1.x in master, as it's not included on master.

@goetas
Copy link
Collaborator

goetas commented Feb 22, 2023

@deguif
Copy link
Contributor Author

deguif commented Feb 22, 2023

Yes, thank you for the release. I'm using the master as there is support for symfony 6.x inside, but this fix is not inside ;)

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.

2 participants