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: test empty parameter against null #6852

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Dec 8, 2024

fixes #6844

@soyuka soyuka merged commit abbc031 into api-platform:3.4 Dec 9, 2024
78 checks passed
soyuka added a commit that referenced this pull request Dec 13, 2024
* fix(jsonschema): hashmaps produces invalid openapi schema (#6830)

* fix(jsonschema): hashmaps produces invalid openapi schema

* fix

---------

Co-authored-by: soyuka <[email protected]>

* fix: add missing error normalizer trait and remove deprecated interface (#6853)

* fix: test empty parameter against null (#6852)

fixes #6844

* Fix deprecation symfony/dependency-injection

* cs: run php-cs-fixer

* ci: use problem error normalizer trait

* fix(metadata): various parameter improvements (#6867)


- `Parameter::getValue()` now takes a default value as argument `getValue(mixed $default = new ParameterNotFound()): mixed`
- `Parametes::get(string $key, string $parameterClass = QueryParameter::class)` (but also `has` and `remove`) now has a default value as second argument to `QueryParameter::class`
- Constraint violation had the wrong message when using `property`, fixed by using the `key` instead:

---------

Co-authored-by: Vincent Amstoutz <[email protected]>
Co-authored-by: mladencosa <[email protected]>
Co-authored-by: Michiel Kalle <[email protected]>
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.

1 participant