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(
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