cleanup code

This commit is contained in:
2022-08-16 11:08:53 +02:00
parent 922d26d3ac
commit 6eb4c213b9
16 changed files with 118 additions and 91 deletions

View File

@ -26,4 +26,4 @@ class Config_DebugBar extends Config_DebugBar_parent
{
return new DebugBarExceptionHandler();
}
}
}

View File

@ -38,8 +38,8 @@ class ShopControl_DebugBar extends ShopControl_DebugBar_parent
/**
* @param string|null $controllerKey
* @param string|null $function
* @param string|null $parameters
* @param string|null $viewsChain
* @param array $parameters
* @param array $viewsChain
*/
public function start($controllerKey = null, $function = null, $parameters = null, $viewsChain = null)
{
@ -62,8 +62,9 @@ class ShopControl_DebugBar extends ShopControl_DebugBar_parent
/**
* @param Throwable $exception
* @return void
*/
protected function debugBarHandleException(Throwable $exception)
protected function debugBarHandleException(Throwable $exception): void
{
$exceptionHandler = new DebugBarExceptionHandler();
$exceptionHandler->handleUncaughtException($exception);