Skip to content

Commit 0c0f9d2

Browse files
authored
ScriptUrl: Fix class extendability (#187) (#188)
1 parent b2a9093 commit 0c0f9d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Http/UrlScript.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public function withPath(string $path, string $scriptPath = '')
5454
{
5555
$dolly = clone $this;
5656
$dolly->scriptPath = $scriptPath;
57-
return call_user_func([$dolly, 'parent::withPath'], $path);
57+
$parent = \Closure::fromCallable([UrlImmutable::class, 'withPath'])->bindTo($dolly);
58+
return $parent($path);
5859
}
5960

6061

0 commit comments

Comments
 (0)