aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-08-04 00:55:09 +0200
committerThomas Lange <code@nerdmind.de>2021-08-04 00:55:09 +0200
commitb73a4dd4958a7c5d507179fdd291a80d1382b743 (patch)
treef23f4328362d572505c50408ac8bea4567993cc9
parentd1a68c763bdfa6ebbd71e2eee4ff870fed88be5f (diff)
downloadblog-b73a4dd4958a7c5d507179fdd291a80d1382b743.tar.gz
blog-b73a4dd4958a7c5d507179fdd291a80d1382b743.tar.xz
blog-b73a4dd4958a7c5d507179fdd291a80d1382b743.zip
Add explicit parameter types for the "exit" method
-rw-r--r--core/namespace/Application.php2
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);
}