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
With the latest update I get the following type error now using PHP 8.0
TypeError: rawurlencode(): Argument #1 ($string) must be of type string, int given in laminas-router\src\Http\Regex.php:158
It looks like the problem is when the values passed to the view url helper $options aren't string types:
$options = ['id' => 3 ];
$this->view->url($route, $options);
Is this the correct/expected behavior, then this bug report can be closed.
The text was updated successfully, but these errors were encountered:
The `Regex` router, when assembling a URL, was not casting values to string when calling `rawurlencode()`, leading to a `TypeError` in PHP 8.
[optional footerFixes laminas#14
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
The `Regex` router, when assembling a URL, was not casting values to string when calling `rawurlencode()`, leading to a `TypeError` in PHP 8.
[optional footerFixes #14
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
With the latest update I get the following type error now using PHP 8.0
TypeError: rawurlencode(): Argument #1 ($string) must be of type string, int given in laminas-router\src\Http\Regex.php:158
Stack trace:
It looks like the problem is when the values passed to the view url helper $options aren't string types:
$options = ['id' => 3 ];
$this->view->url($route, $options);
Is this the correct/expected behavior, then this bug report can be closed.
The text was updated successfully, but these errors were encountered: