Skip to content

fix: reorder early return QueryParameterValidateListener #6300

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

Conversation

louismariegaborit
Copy link
Contributor

Q A
Branch? main
Tickets Closes #6243
License MIT
Doc PR

]);

return;
}
Copy link
Member

Choose a reason for hiding this comment

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

can you add a non reg test in QueryParameterValidateListenerTest

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tests added. I did some changes in addition on moved code.
Could you check if the if block stay good ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have an error on CI that I don't have in my local env. I work on it this day.

Copy link
Contributor Author

@louismariegaborit louismariegaborit Apr 9, 2024

Choose a reason for hiding this comment

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

CI is ok.
The problem with phpunit tests was the namespace. I didn't see that test class was already exist in Symfony sources.
For my future contributions, why there are tests in ./tests/Symfony folder and others in ./src/Symfony/Tests ?

Copy link
Member

Choose a reason for hiding this comment

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

We moved some tests into their components directory on the main branch, part of our subtree-split work. See: https://github.com/api-platform/core/blob/main/CONTRIBUTING.md#components-tests

@louismariegaborit louismariegaborit force-pushed the fix_query_parameter_validate_listener branch 5 times, most recently from 03ee7fe to 28341f4 Compare April 8, 2024 21:03
@louismariegaborit louismariegaborit force-pushed the fix_query_parameter_validate_listener branch from 28341f4 to 86aaeb0 Compare April 9, 2024 10:05
@soyuka soyuka merged commit 5e908c8 into api-platform:main Apr 9, 2024
73 of 76 checks passed
@soyuka
Copy link
Member

soyuka commented Apr 9, 2024

nice thanks!

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.

ParameterValidator and flag use_symfony_listeners
2 participants