From cf02dbaa08bda1518206dd6f7fc7f4ab5d2ddf14 Mon Sep 17 00:00:00 2001 From: Chris Nizzardini Date: Sat, 29 Oct 2022 14:11:59 -0400 Subject: [PATCH] Allow mixed type for RouteDecorator::prefix (#476) --- src/Lib/Route/RouteDecorator.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Lib/Route/RouteDecorator.php b/src/Lib/Route/RouteDecorator.php index 3daee728..509f2463 100644 --- a/src/Lib/Route/RouteDecorator.php +++ b/src/Lib/Route/RouteDecorator.php @@ -57,7 +57,7 @@ class RouteDecorator private $controllerFqn; /** - * @var string|null + * @var mixed */ private $prefix; @@ -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;