diff --git a/src/Http/UrlScript.php b/src/Http/UrlScript.php index d69c5ed4..9de766d6 100644 --- a/src/Http/UrlScript.php +++ b/src/Http/UrlScript.php @@ -50,7 +50,7 @@ public function withPath(string $path, string $scriptPath = ''): static { $dolly = clone $this; $dolly->scriptPath = $scriptPath; - $parent = \Closure::fromCallable([UrlImmutable::class, 'withPath'])->bindTo($dolly); + $parent = UrlImmutable::withPath(...)->bindTo($dolly); return $parent($path); }