Skip to content

Commit

Permalink
unwrap enum
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Nov 21, 2023
1 parent 68ce1ff commit 7cc20ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Core/Router/RouteUri.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
use Windwalker\Uri\Uri;
use Windwalker\Uri\UriHelper;

use function Windwalker\unwrap_enum;

/**
* The RouteUri class.
*/
Expand Down Expand Up @@ -176,7 +178,7 @@ public function task(string $task): static
*/
public function var(string $name, mixed $value): static
{
return $this->withVar($name, $value);
return $this->withVar($name, unwrap_enum($value));
}

/**
Expand Down

0 comments on commit 7cc20ca

Please sign in to comment.