diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-01-13 08:39:22 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-01-13 08:39:22 +0100 |
| commit | cb4bdf265fe84443f6000e4af6e132f5aa566e3f (patch) | |
| tree | 659d81c24abb6888ddb16220bf570993c6469a66 /lib/exceptions | |
| parent | 246fe2c51046331af9c7509c201c937b2e433108 (diff) | |
use rector to resolve implicitely nullable parameter declarations, fixes #5463
Closes #5463
Merge request studip/studip!4097
Diffstat (limited to 'lib/exceptions')
| -rw-r--r-- | lib/exceptions/AccessDeniedException.php | 2 | ||||
| -rw-r--r-- | lib/exceptions/FeatureDisabledException.php | 2 | ||||
| -rw-r--r-- | lib/exceptions/InvalidSecurityTokenException.php | 2 | ||||
| -rw-r--r-- | lib/exceptions/MethodNotAllowedException.php | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/exceptions/AccessDeniedException.php b/lib/exceptions/AccessDeniedException.php index 778211d..5593997 100644 --- a/lib/exceptions/AccessDeniedException.php +++ b/lib/exceptions/AccessDeniedException.php @@ -19,7 +19,7 @@ class AccessDeniedException extends Exception * @param integer $code Exception code * @param Exception $previous Previous exception (optional) */ - public function __construct($message = '', $code = 0, Exception $previous = null) + public function __construct($message = '', $code = 0, ?Exception $previous = null) { if (func_num_args() === 0) { $message = _('Sie haben nicht die Berechtigung, diese Aktion ' diff --git a/lib/exceptions/FeatureDisabledException.php b/lib/exceptions/FeatureDisabledException.php index 52cbbdf..ebb7736 100644 --- a/lib/exceptions/FeatureDisabledException.php +++ b/lib/exceptions/FeatureDisabledException.php @@ -1,7 +1,7 @@ <?php class FeatureDisabledException extends Studip\Exception { - public function __construct($message = '', $code = 0, Exception $previous = null) + public function __construct($message = '', $code = 0, ?Exception $previous = null) { if (func_num_args() === 0) { $message = _('Diese Funktion ist ausgeschaltet.'); diff --git a/lib/exceptions/InvalidSecurityTokenException.php b/lib/exceptions/InvalidSecurityTokenException.php index 134f54d..b78ad6a 100644 --- a/lib/exceptions/InvalidSecurityTokenException.php +++ b/lib/exceptions/InvalidSecurityTokenException.php @@ -19,7 +19,7 @@ class InvalidSecurityTokenException extends AccessDeniedException /** * @param string this parameter is ignored but required by PHP */ - public function __construct($message = '', $code = 0, Exception $previous = null) + public function __construct($message = '', $code = 0, ?Exception $previous = null) { parent::__construct(_('Ungültiges oder fehlendes Sicherheits-Token.')); } diff --git a/lib/exceptions/MethodNotAllowedException.php b/lib/exceptions/MethodNotAllowedException.php index 75f3b10..6f2064f 100644 --- a/lib/exceptions/MethodNotAllowedException.php +++ b/lib/exceptions/MethodNotAllowedException.php @@ -16,7 +16,7 @@ class MethodNotAllowedException extends Exception { - public function __construct($message = '', $code = 0, Exception $previous = null) + public function __construct($message = '', $code = 0, ?Exception $previous = null) { parent::__construct($message ?: _('Unzulässige Request-Methode beim Aufruf.'), $code, $previous); } |
