Skip to content

Commit

Permalink
ScriptUrl: Fix class extendability (#187) (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubboucek committed Nov 16, 2020
1 parent b2a9093 commit 0c0f9d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/UrlScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public function withPath(string $path, string $scriptPath = '')
{
$dolly = clone $this;
$dolly->scriptPath = $scriptPath;
return call_user_func([$dolly, 'parent::withPath'], $path);
$parent = \Closure::fromCallable([UrlImmutable::class, 'withPath'])->bindTo($dolly);
return $parent($path);
}


Expand Down

0 comments on commit 0c0f9d2

Please sign in to comment.