API Platform version(s) affected: 4
Description
In ParamaterExtension there is an edge case when we pass "0" in an argument value, which is ok for boolean filter for example.
see
|
if (!($v = $parameter->getValue()) || $v instanceof ParameterNotFound) { |
This condition !($v = $parameter->getValue()) skips the parameter for further processing.
How to reproduce
Use zero as an argument value.
API Platform version(s) affected: 4
Description
In ParamaterExtension there is an edge case when we pass "0" in an argument value, which is ok for boolean filter for example.
see
core/src/Doctrine/Orm/Extension/ParameterExtension.php
Line 44 in de3bed2
This condition
!($v = $parameter->getValue())skips the parameter for further processing.How to reproduce
Use zero as an argument value.