{
/**
* active request object
- * @var Request
*/
- protected $activeRequest;
+ protected ?Request $activeRequest = null;
/**
* indicates if the request is an acp request
- * @var bool
*/
- protected $isACPRequest = false;
+ protected bool $isACPRequest = false;
/**
* @inheritDoc
/**
* Handles a http request.
*
- * @param string $application
- * @param bool $isACPRequest
* @throws AJAXException
* @throws IllegalLinkException
* @throws SystemException
*/
- public function handle($application = 'wcf', $isACPRequest = false)
+ public function handle(string $application = 'wcf', bool $isACPRequest = false): void
{
try {
$this->isACPRequest = $isACPRequest;
/**
* Returns the active request object.
- *
- * @return Request
*/
- public function getActiveRequest()
+ public function getActiveRequest(): ?Request
{
return $this->activeRequest;
}
/**
* Returns true if the request is an acp request.
- *
- * @return bool
*/
- public function isACPRequest()
+ public function isACPRequest(): bool
{
return $this->isACPRequest;
}
/**
* @deprecated 5.6 - This method always returns false.
*/
- public function inRescueMode()
+ public function inRescueMode(): bool
{
return false;
}