Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix validator when we have false returned by the current element of the iterator #40060

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

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

FabienSalles
Copy link
Contributor

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #40057
License MIT

@FabienSalles
Copy link
Contributor Author

@xabbuh my tests failed because of deprecation notices with my anonymous classes.

Why is it not possible ?
What changes should I made ?

Thanks in advance :).

@FabienSalles FabienSalles changed the base branch from 5.x to 4.4 February 1, 2021 17:49
@stof
Copy link
Member

stof commented Feb 1, 2021

something looks weird in these deprecations. they look truncated.
@nicolas-grekas could it be caused by the NUL byte in the anonymous class name ? And if yes, is it in our code, in PHPUnit or in PHP ?

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here is how to fix the failure (which is quite cryptic right now, I'm going to submit a fix in a separate PR)

fix coding styles

add type in return
@FabienSalles FabienSalles force-pushed the fix_validator_with_empty_iterator branch from 012130f to a9e9359 Compare February 2, 2021 09:31
Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Thank you

@Nyholm Nyholm merged commit 8bd81b5 into symfony:4.4 Feb 2, 2021
@fabpot fabpot mentioned this pull request Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DoctrineBridge] Error on UniqueEntityValidator with Mongodb and Doctrine
6 participants