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

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

Merged
merged 1 commit into from Feb 2, 2021

Conversation

FabienSalles
Copy link
Contributor

@FabienSalles FabienSalles commented Feb 1, 2021

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

@FabienSalles
Copy link
Contributor Author

FabienSalles commented Feb 1, 2021

@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 Feb 1, 2021
@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

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 Feb 2, 2021
stof
stof approved these changes Feb 2, 2021
xabbuh
xabbuh approved these changes Feb 2, 2021
Nyholm
Nyholm approved these changes Feb 2, 2021
Copy link
Member

@Nyholm Nyholm left a comment

Great. Thank you

@Nyholm Nyholm merged commit 8bd81b5 into symfony:4.4 Feb 2, 2021
4 of 5 checks passed
@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.

6 participants