You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from version 3.4.0, the Wildcard route throws a TypeError when passing int parameters to rawurlencode(). This has previously worked just fine (up to version 3.3.2). It seems a cast to string is missing before encoding parameter values. It looks like the culprit could be zendframework/zend-router#44.
No TypeError is thrown when passing int params to Wildcard::assemble().
Current behavior
When passing int params to Wildcard::assemble(), a TypeError is thrown when invoking rawurlencode().
How to reproduce
$wildcard = new \Laminas\Router\Http\Wildcard();
echo$wildcard->assemble([
'int_param' => 1,
]);
// throws TypeError: rawurlencode() expects parameter 1 to be string, int given
The text was updated successfully, but these errors were encountered:
BC Break Report
Summary
Starting from version 3.4.0, the Wildcard route throws a
TypeError
when passing int parameters torawurlencode()
. This has previously worked just fine (up to version 3.3.2). It seems a cast to string is missing before encoding parameter values. It looks like the culprit could be zendframework/zend-router#44.It looks like a similar problem as #14
Tested on PHP 7.3 and PHP 7.4
Previous behavior
No TypeError is thrown when passing
int
params toWildcard::assemble()
.Current behavior
When passing
int
params toWildcard::assemble()
, aTypeError
is thrown when invokingrawurlencode()
.How to reproduce
The text was updated successfully, but these errors were encountered: