From faee5e27d42e5db16a11cb78722bd4d033ca26d8 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Tue, 11 Apr 2017 21:18:31 +0200 Subject: Return type declaration "void" added. --- core/namespace/Application.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/namespace/Application.php b/core/namespace/Application.php index 36dd2cd..2770a1a 100644 --- a/core/namespace/Application.php +++ b/core/namespace/Application.php @@ -139,7 +139,7 @@ class Application { #=============================================================================== # Exit application with a custom message and status code #=============================================================================== - public static function exit($message = '', $code = 503) { + public static function exit($message = '', $code = 503): void { http_response_code($code); exit($message); } @@ -147,7 +147,7 @@ class Application { #=============================================================================== # Exit application with the 403 error page #=============================================================================== - public static function error403() { + public static function error403(): void { require_once ROOT.'403.php'; exit(); } @@ -155,7 +155,7 @@ class Application { #=============================================================================== # Exit application with the 404 error page #=============================================================================== - public static function error404() { + public static function error404(): void { require_once ROOT.'404.php'; exit(); } -- cgit v1.2.3