From b73a4dd4958a7c5d507179fdd291a80d1382b743 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Wed, 4 Aug 2021 00:55:09 +0200 Subject: Add explicit parameter types for the "exit" method --- core/namespace/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/namespace/Application.php') 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); } -- cgit v1.2.3