Skip to content

Commit d90c748

Browse files
authored
Swap order of parameters of initErrorHandler()
1 parent cf4e49f commit d90c748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DB {
1313
protected $error = [ 'code' => 0, 'msg' => null ];
1414

1515
// initialize error handler / define configs for error handling
16-
public static function initErrorHandler(array $error_types=[], string $env='production') {
16+
public static function initErrorHandler(string $env='production', array $error_types=[]) {
1717
self::$env = $env;
1818

1919
if ($error_types == []) {

0 commit comments

Comments
 (0)