CoreLibs Array keyword remove and switch over to []

This commit is contained in:
Clemens Schwaighofer
2021-06-30 15:07:22 +09:00
parent 76e0c0ac06
commit 678aa7460e
17 changed files with 57 additions and 46 deletions

View File

@@ -34,7 +34,7 @@ function MyErrorHandler(int $type, string $message, string $file, int $line, arr
return false;
}
// ERROR LEVEL
$error_level = array(
$error_level = [
1 => 'E_ERROR',
2 => 'E_WARNING',
4 => 'E_PARSE',
@@ -51,7 +51,7 @@ function MyErrorHandler(int $type, string $message, string $file, int $line, arr
8192 => 'E_DEPRICATED',
16384 => 'E_USER_DEPRICATED',
30719 => 'E_ALL'
);
];
// get the current page name (strip path)
$page_temp = explode(DIRECTORY_SEPARATOR, $_SERVER["PHP_SELF"]);