From c6bbaf3404a9a029f554ad2b32ed81d045b08ac6 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Mon, 12 May 2025 16:08:10 -0400 Subject: [PATCH] FIX: DEPRECATED --- app/src/Exception/ServiceAction/Create.php | 2 +- app/src/Exception/ServiceAction/Delete.php | 2 +- app/src/Exception/ServiceAction/Read.php | 2 +- app/src/Exception/ServiceAction/Update.php | 2 +- app/src/Exception/ServiceActionFail.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/Exception/ServiceAction/Create.php b/app/src/Exception/ServiceAction/Create.php index 7983ac4..6df524a 100644 --- a/app/src/Exception/ServiceAction/Create.php +++ b/app/src/Exception/ServiceAction/Create.php @@ -6,7 +6,7 @@ use Incoviba\Exception\ServiceActionFail; class Create extends ServiceActionFail { - public function __construct(string $service, Throwable $previous = null) + public function __construct(string $service, ?Throwable $previous = null) { $action = 'create'; $code = 1; diff --git a/app/src/Exception/ServiceAction/Delete.php b/app/src/Exception/ServiceAction/Delete.php index a85dab0..122cdd3 100644 --- a/app/src/Exception/ServiceAction/Delete.php +++ b/app/src/Exception/ServiceAction/Delete.php @@ -6,7 +6,7 @@ use Incoviba\Exception\ServiceActionFail; class Delete extends ServiceActionFail { - public function __construct(string $service, Throwable $previous = null) + public function __construct(string $service, ?Throwable $previous = null) { $action = 'delete'; $code = 4; diff --git a/app/src/Exception/ServiceAction/Read.php b/app/src/Exception/ServiceAction/Read.php index 9f624a7..53e3395 100644 --- a/app/src/Exception/ServiceAction/Read.php +++ b/app/src/Exception/ServiceAction/Read.php @@ -6,7 +6,7 @@ use Incoviba\Exception\ServiceActionFail; class Read extends ServiceActionFail { - public function __construct(string $service, Throwable $previous = null) + public function __construct(string $service, ?Throwable $previous = null) { $action = 'read'; $code = 2; diff --git a/app/src/Exception/ServiceAction/Update.php b/app/src/Exception/ServiceAction/Update.php index f5413f5..eb6da21 100644 --- a/app/src/Exception/ServiceAction/Update.php +++ b/app/src/Exception/ServiceAction/Update.php @@ -6,7 +6,7 @@ use Incoviba\Exception\ServiceActionFail; class Update extends ServiceActionFail { - public function __construct(string $service, Throwable $previous = null) + public function __construct(string $service, ?Throwable $previous = null) { $action = 'edit'; $code = 3; diff --git a/app/src/Exception/ServiceActionFail.php b/app/src/Exception/ServiceActionFail.php index 3fa134c..cafe282 100644 --- a/app/src/Exception/ServiceActionFail.php +++ b/app/src/Exception/ServiceActionFail.php @@ -6,7 +6,7 @@ use Throwable; class ServiceActionFail extends Exception { - public function __construct(string $service,string $action = "__invoke", int $code = 0, Throwable $previous = null) + public function __construct(string $service,string $action = "__invoke", int $code = 0, ?Throwable $previous = null) { $message = "Action {$action} failed for Service {$service}."; $code = 700 + $code;