Skip to content

Commit ebc8cf7

Browse files
committed
Remove unused $locale parameter
1 parent 4d1a814 commit ebc8cf7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/LocalizedUrlGenerator.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function generateFromRequest($locale = null, $parameters = null, $absolut
5050
$parameters = $this->prepareParameters($locale, $parameters ?: $this->getRouteParameters());
5151

5252
if ( ! $this->is404()) {
53-
$urlBuilder->setPath($this->replaceParameters($this->route->uri(), $parameters, $locale));
53+
$urlBuilder->setPath($this->replaceParameters($this->route->uri(), $parameters));
5454
}
5555

5656
if ( ! $this->hasCustomDomains() && ($this->is404() || $this->isLocalized())) {
@@ -261,11 +261,10 @@ protected function updateLocaleInSlugs(array $slugs, $locale)
261261
*
262262
* @param string $uri
263263
* @param array $parameters
264-
* @param string $locale
265264
*
266265
* @return string
267266
*/
268-
protected function replaceParameters($uri, $parameters, $locale)
267+
protected function replaceParameters($uri, $parameters)
269268
{
270269
preg_match_all('/{([a-z_.-]+)}/', $uri, $matches);
271270
$paramKeys = $matches[1] ?? [];

0 commit comments

Comments
 (0)