summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-04-11 21:18:31 +0200
committerThomas Lange <code@nerdmind.de>2017-04-11 21:18:31 +0200
commitfaee5e27d42e5db16a11cb78722bd4d033ca26d8 (patch)
tree7876e4f5082e61d86b7cd4d3af1b2768ee61850c
parent85e48b669f65933d5376f9214219c7e5eb10a9e7 (diff)
downloadblog-faee5e27d42e5db16a11cb78722bd4d033ca26d8.tar.gz
blog-faee5e27d42e5db16a11cb78722bd4d033ca26d8.tar.xz
blog-faee5e27d42e5db16a11cb78722bd4d033ca26d8.zip
Return type declaration "void" added.
-rw-r--r--core/namespace/Application.php6
1 files 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();
}