diff --git a/src/Infrastructure/Response/JsonResponse.php b/src/Infrastructure/Response/JsonResponse.php index c27518a24..f568dcebf 100644 --- a/src/Infrastructure/Response/JsonResponse.php +++ b/src/Infrastructure/Response/JsonResponse.php @@ -28,8 +28,6 @@ public static function success(array $data, int $status = 200): self */ public static function error($error, int $status = 400): self { - // TODO add compatibility for json string object when logs will be implemented - if (!is_array($error)) { $error = [$error]; }