diff --git a/app/Containers/AppSection/User/Actions/UpdateUserAction.php b/app/Containers/AppSection/User/Actions/UpdateUserAction.php index a3c8f2dc0..a24b27a62 100644 --- a/app/Containers/AppSection/User/Actions/UpdateUserAction.php +++ b/app/Containers/AppSection/User/Actions/UpdateUserAction.php @@ -5,13 +5,14 @@ use App\Containers\AppSection\User\Models\User; use App\Containers\AppSection\User\Tasks\UpdateUserTask; use App\Containers\AppSection\User\UI\API\Requests\UpdateUserRequest; +use App\Ship\Exceptions\NotFoundException; use App\Ship\Exceptions\UpdateResourceFailedException; use App\Ship\Parents\Actions\Action; class UpdateUserAction extends Action { /** - * @throws UpdateResourceFailedException + * @throws UpdateResourceFailedException|NotFoundException */ public function run(UpdateUserRequest $request): User { diff --git a/app/Containers/AppSection/User/UI/API/Controllers/CreateAdminController.php b/app/Containers/AppSection/User/UI/API/Controllers/CreateAdminController.php index a6faec722..b456c2f7c 100644 --- a/app/Containers/AppSection/User/UI/API/Controllers/CreateAdminController.php +++ b/app/Containers/AppSection/User/UI/API/Controllers/CreateAdminController.php @@ -8,12 +8,14 @@ use App\Containers\AppSection\User\UI\API\Transformers\UserTransformer; use App\Ship\Exceptions\CreateResourceFailedException; use App\Ship\Parents\Controllers\ApiController; +use Throwable; class CreateAdminController extends ApiController { /** * @throws InvalidTransformerException * @throws CreateResourceFailedException + * @throws Throwable */ public function createAdmin(CreateAdminRequest $request): array { diff --git a/app/Containers/AppSection/User/UI/API/Tests/Functional/CreateAdminTest.php b/app/Containers/AppSection/User/UI/API/Tests/Functional/CreateAdminTest.php index a7865b6e6..869169a37 100644 --- a/app/Containers/AppSection/User/UI/API/Tests/Functional/CreateAdminTest.php +++ b/app/Containers/AppSection/User/UI/API/Tests/Functional/CreateAdminTest.php @@ -2,7 +2,6 @@ namespace App\Containers\AppSection\User\UI\API\Tests\Functional; -use App\Containers\AppSection\User\Models\User; use App\Containers\AppSection\User\UI\API\Tests\ApiTestCase; use Illuminate\Testing\Fluent\AssertableJson;