-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Add is_valid function to Expression constraint #50438
Add is_valid function to Expression constraint #50438
Conversation
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
Hey! Thanks for your PR. You are targeting branch "6.4" but it seems your PR description refers to branch "6.4 for features". Cheers! Carsonbot |
be02096
to
c20d5cb
Compare
Is this PR meant to replace #47153? |
I'm trying to do it. I saw that ones was stuck for long time. I rebased, but I miss a }, I will work on it this weekend. |
c20d5cb
to
c731b88
Compare
@DEVizzent I don't think the failing job is related to your changes. |
1338669
to
5084bd2
Compare
This time most of jobs have failed, but I only change a CHANGE.log in a commit... |
5084bd2
to
f8b8a1c
Compare
Hi @xabbuh |
f8b8a1c
to
3d1a798
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rebased the PR and simplified the implementation a bit.
Thank you @DEVizzent. |
And thank you @verdet23 ! |
We tried our 6.3 app on 6.4.x-dev With an empty cache in a symony app, when
because you are cloning and then adding a function an already cached/parsed |
@nicolas-grekas possibly it the |
Correct, I missed this. Can you submit a fix? |
I can but I do not understand the desired functionality. |
The idea is to not mutate the injected service. |
are you suggesting a new service (same as this one) which thanks |
…]` (nicolas-grekas) This PR was merged into the 6.4 branch. Discussion ---------- [Validator] Fix registering "is_valid()" for `#[Expression]` | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | #50438 | License | MIT | Doc PR | - `@bendavies` can you please confirm this fixes the issue for you? Commits ------- b24d9a0 [Validator] Fix registering "is_valid()" for `#[Expression]`
Add
is_valid
function to the Expression constraint, api the same asValidatorInterface::validate