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

Cast to string when calling rawurlencode within Regex router #15

Merged

Conversation

weierophinney
Copy link
Member

The Regex router, when assembling a URL, was not casting values to string when calling rawurlencode(), leading to a TypeError in PHP 8.

This patch now uses an explicit cast when calling the function.

Fixes #14

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]>
@weierophinney weierophinney added this to the 3.4.1 milestone Nov 19, 2020
@weierophinney weierophinney added the Bug Something isn't working label Nov 19, 2020
@weierophinney
Copy link
Member Author

I've tested this on PHP 7.3, 7.4, and 8.0, using both lowest and latest deps; tests pass.

CS checks pass.

Copy link
Member

@froschdesign froschdesign left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants