From b2ec1db75ca3b328038912d70608ccb6c58a6b93 Mon Sep 17 00:00:00 2001 From: Mostafa Barmshory Date: Sun, 14 Feb 2021 09:02:11 +0330 Subject: [PATCH] To support Object Mapper JSON https://github.com/pluf/core/issues/118 --- src/Exception.php | 1 + src/Process/Http/ResponseBodyEncoder.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exception.php b/src/Exception.php index 39dfeb9..17248cb 100755 --- a/src/Exception.php +++ b/src/Exception.php @@ -20,6 +20,7 @@ use Throwable; use RuntimeException; + use Pluf\Orm\Attribute\Entity; use Pluf\Orm\Attribute\Column; use Pluf\Orm\Attribute\Transients; diff --git a/src/Process/Http/ResponseBodyEncoder.php b/src/Process/Http/ResponseBodyEncoder.php index 09c6f4e..5538ffe 100644 --- a/src/Process/Http/ResponseBodyEncoder.php +++ b/src/Process/Http/ResponseBodyEncoder.php @@ -51,7 +51,6 @@ public function __invoke( } else { $ex = $t; } - $status = $ex->getStatus(); // TODO: maso, 2021: enable exception json annotations $result = [