From a982be66455bca1c5b39bb3ba38257fb3335d255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Tue, 2 May 2023 10:36:04 +0200 Subject: [PATCH] remove unnecessary "pass by reference" variables from Request --- src/Request/Request.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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