FIX: DEPRECATED

This commit is contained in:
Juan Pablo Vial
2025-05-12 16:08:10 -04:00
parent 9e2d7277b0
commit c6bbaf3404
5 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;