feature/cierres #30

Merged
aldarien merged 460 commits from feature/cierres into develop 2025-09-11 15:16:17 -03:00
253 changed files with 788 additions and 8942 deletions
Showing only changes of commit c6bbaf3404 - Show all commits

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;