remove unnecessary "pass by reference" variables from Request
This commit is contained in:
parent
219b42f995
commit
a982be6645
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user