diff --git a/CHANGELOG.md b/CHANGELOG.md index f892fc7..7ecb697 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,24 @@ All notable changes to this project will be documented in this file, in reverse - Nothing. +## 3.4.4 - 2020-12-16 + +### Release Notes for [3.4.4](https://github.com/laminas/laminas-router/milestone/8) + +3.4.x bugfix release (patch) + +### 3.4.4 + +- Total issues resolved: **1** +- Total pull requests resolved: **1** +- Total contributors: **1** + +#### Bug + +- [24: cast to string when calling rawurlencode() within Wildcard router](https://github.com/laminas/laminas-router/pull/24) thanks to @gkralik + +## 3.4.3 - 2020-12-07 + ### Fixed - Nothing. diff --git a/src/Http/Wildcard.php b/src/Http/Wildcard.php index 7c7856d..c93ed39 100644 --- a/src/Http/Wildcard.php +++ b/src/Http/Wildcard.php @@ -175,7 +175,7 @@ public function assemble(array $params = [], array $options = []) continue; } - $elements[] = rawurlencode($key) . $this->keyValueDelimiter . rawurlencode($value); + $elements[] = rawurlencode($key) . $this->keyValueDelimiter . rawurlencode((string) $value); $this->assembledParams[] = $key; } diff --git a/test/Http/WildcardTest.php b/test/Http/WildcardTest.php index 1e7bbcd..c3c0c93 100644 --- a/test/Http/WildcardTest.php +++ b/test/Http/WildcardTest.php @@ -83,6 +83,12 @@ public static function routeProvider() null, ['foo' => 'foo bar'] ], + 'params-contain-non-string-scalar-values' => [ + new Wildcard(), + '/int_param/42/float_param/4.2', + null, + ['int_param' => 42, 'float_param' => 4.2] + ], ]; }