diff --git a/src/Business/Generator/UrlGenerator.php b/src/Business/Generator/UrlGenerator.php index 4f61c97..256ddc9 100644 --- a/src/Business/Generator/UrlGenerator.php +++ b/src/Business/Generator/UrlGenerator.php @@ -40,7 +40,7 @@ public function generateUrlByRouteName(string $routeName, array|null $parameters } foreach ($parameters as $key => $value) { - $uri = str_replace(sprintf('{%s}', $key), $value, $uri); + $uri = str_replace(sprintf('{%s}', $key), (string) $value, $uri); } return $uri;