From 6f02a4e2e2d0d407eedd750ab04af45cdebd651b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Tue, 15 Oct 2019 11:04:14 +0200 Subject: [PATCH] Fixing error formatter skipping debug param --- src/Exceptions/WebonyxErrorHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exceptions/WebonyxErrorHandler.php b/src/Exceptions/WebonyxErrorHandler.php index e4e514983c..bfbe8a2bf5 100644 --- a/src/Exceptions/WebonyxErrorHandler.php +++ b/src/Exceptions/WebonyxErrorHandler.php @@ -53,7 +53,7 @@ public static function errorHandler(array $errors, callable $formatter): array $formattedErrors = array_merge($formattedErrors, $formattedInnerErrors); } else { - $formattedErrors[] = self::errorFormatter($error); + $formattedErrors[] = $formatter($error); } }