Skip to content

Commit

Permalink
Fix type issues in exception handler (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
digedag authored Nov 1, 2023
1 parent 2385695 commit fa45526
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Classes/Exception/ExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Sys25\RnBase\Exception;

use Exception;
use Sys25\RnBase\Configuration\ConfigurationInterface;
use Sys25\RnBase\Configuration\Processor;
use Sys25\RnBase\Utility\Logger;
Expand Down Expand Up @@ -119,10 +118,10 @@ protected function send503HeaderOnException(ConfigurationInterface $configuratio
* Build an error message string for frontend.
*
* @param string $actionName
* @param Exception $e
* @param Throwable $e
* @param ConfigurationInterface $configurations
*/
protected function getErrorMessage($actionName, Exception $e, ConfigurationInterface $configurations)
protected function getErrorMessage($actionName, Throwable $e, ConfigurationInterface $configurations)
{
if (Processor::getExtensionCfgValue('rn_base', 'verboseMayday')) {
return '<div>'
Expand Down Expand Up @@ -161,14 +160,14 @@ protected function getErrorMessage($actionName, Exception $e, ConfigurationInter
* um die fehlerbehandlung weiter leufen zu lassen.
*
* @param string $actionName
* @param Exception $e
* @param Throwable $e
* @param ConfigurationInterface $configurations
*
* @return string|null
*/
protected function catchException(
$actionName,
Exception $e,
Throwable $e,
ConfigurationInterface $configurations
) {
// typoscript nach catchanweisungen prüfen
Expand Down Expand Up @@ -198,14 +197,14 @@ protected function catchException(
* also die methode nur ein mal auftaucht.
*
* @param string $actionName
* @param Exception $e
* @param Throwable $e
* @param ConfigurationInterface $configurations
*
* @return bool
*/
private function checkExceptionRecursion(
$action,
Exception $e,
Throwable $e,
ConfigurationInterface $configurations,
$type = 'error'
) {
Expand Down

0 comments on commit fa45526

Please sign in to comment.