diff --git a/src/Request/Request.php b/src/Request/Request.php index 0887e2e..535f4f0 100644 --- a/src/Request/Request.php +++ b/src/Request/Request.php @@ -23,15 +23,15 @@ class Request implements IRequest public function __construct( string $base, - array &$get, - array &$post, + array $get, + array $post, array $headers, array &$session, IUserRepository $userRepository) { $this->base = $base; - $this->get = &$get; - $this->post = &$post; + $this->get = $get; + $this->post = $post; $this->headers = $headers; $this->session = new Session($session); @@ -41,9 +41,9 @@ class Request implements IRequest } } - public function setParsedRouteParams(array &$routeParams): void + public function setParsedRouteParams(array $routeParams): void { - $this->routeParams = &$routeParams; + $this->routeParams = $routeParams; } public function getBase(): string