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); } }