diff options
author | Thomas Lange <code@nerdmind.de> | 2021-08-04 00:55:09 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-08-04 00:55:09 +0200 |
commit | b73a4dd4958a7c5d507179fdd291a80d1382b743 (patch) | |
tree | f23f4328362d572505c50408ac8bea4567993cc9 /core/namespace | |
parent | d1a68c763bdfa6ebbd71e2eee4ff870fed88be5f (diff) | |
download | blog-b73a4dd4958a7c5d507179fdd291a80d1382b743.tar.gz blog-b73a4dd4958a7c5d507179fdd291a80d1382b743.tar.xz blog-b73a4dd4958a7c5d507179fdd291a80d1382b743.zip |
Add explicit parameter types for the "exit" method
Diffstat (limited to 'core/namespace')
-rw-r--r-- | core/namespace/Application.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/namespace/Application.php b/core/namespace/Application.php index b88fa2c..fa5e0a9 100644 --- a/core/namespace/Application.php +++ b/core/namespace/Application.php @@ -229,7 +229,7 @@ class Application { #=============================================================================== # Exit application with a custom message and status code #=============================================================================== - public static function exit($message = '', $code = 503): void { + public static function exit(?string $message = NULL, int $code = 503): void { http_response_code($code); exit($message); } |