FIX: DEPRECATED
This commit is contained in:
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user