remove unnecessary "pass by reference" variables from Request

This commit is contained in:
Bence Pőcze 2023-05-02 10:36:04 +02:00
parent 219b42f995
commit a982be6645
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -23,15 +23,15 @@ class Request implements IRequest
public function __construct( public function __construct(
string $base, string $base,
array &$get, array $get,
array &$post, array $post,
array $headers, array $headers,
array &$session, array &$session,
IUserRepository $userRepository) IUserRepository $userRepository)
{ {
$this->base = $base; $this->base = $base;
$this->get = &$get; $this->get = $get;
$this->post = &$post; $this->post = $post;
$this->headers = $headers; $this->headers = $headers;
$this->session = new Session($session); $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 public function getBase(): string