Skip to content

Commit

Permalink
Allow mixed type for RouteDecorator::prefix (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnizzardini authored Oct 29, 2022
1 parent 6080e0f commit cf02dba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Lib/Route/RouteDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class RouteDecorator
private $controllerFqn;

/**
* @var string|null
* @var mixed
*/
private $prefix;

Expand Down Expand Up @@ -236,18 +236,18 @@ public function setControllerFqn(string $controllerFqn)
}

/**
* @return string|null
* @return mixed
*/
public function getPrefix(): ?string
public function getPrefix()
{
return $this->prefix;
}

/**
* @param string|null $prefix The routing prefix, for example "Admin" when controller is in App\Controller\Admin
* @param mixed $prefix The routing prefix, for example "Admin" when controller is in App\Controller\Admin
* @return $this
*/
public function setPrefix(?string $prefix)
public function setPrefix($prefix)
{
$this->prefix = $prefix;

Expand Down

0 comments on commit cf02dba

Please sign in to comment.