mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/17176] Update implementations to be compatible with Symfony 6.3
PHPBB3-17176
This commit is contained in:
@@ -25,14 +25,14 @@ class http_exception extends runtime_exception implements HttpExceptionInterface
|
||||
*
|
||||
* @var integer
|
||||
*/
|
||||
private $status_code;
|
||||
private int $status_code;
|
||||
|
||||
/**
|
||||
* Additional headers to set in the response.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private $headers;
|
||||
private array $headers;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@@ -55,7 +55,7 @@ class http_exception extends runtime_exception implements HttpExceptionInterface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getStatusCode()
|
||||
public function getStatusCode(): int
|
||||
{
|
||||
return $this->status_code;
|
||||
}
|
||||
@@ -63,7 +63,7 @@ class http_exception extends runtime_exception implements HttpExceptionInterface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getHeaders()
|
||||
public function getHeaders(): array
|
||||
{
|
||||
return $this->headers;
|
||||
}
|
||||
|
Reference in New Issue
Block a user