diff --git a/src/NullRejection.php b/src/NullRejection.php index 0a66fd3..bd5b239 100644 --- a/src/NullRejection.php +++ b/src/NullRejection.php @@ -12,7 +12,7 @@ public function initialize(): void } /** @param non-empty-array|object $rejection */ - public function reject(object|array $rejection, null|\Throwable $exception = null): void + public function reject(array|object $rejection, \Throwable $exception = null, string $reason = null): void { // NOOP } diff --git a/src/RejectedItemException.php b/src/RejectedItemException.php index bbc3f47..cbd61c1 100644 --- a/src/RejectedItemException.php +++ b/src/RejectedItemException.php @@ -4,6 +4,4 @@ namespace Kiboko\Contract\Pipeline; -final class RejectedItemException extends \RuntimeException -{ -} +final class RejectedItemException extends \RuntimeException {} diff --git a/src/RejectionInterface.php b/src/RejectionInterface.php index 4b0262d..a11fdab 100644 --- a/src/RejectionInterface.php +++ b/src/RejectionInterface.php @@ -9,7 +9,7 @@ interface RejectionInterface public function initialize(): void; /** @param non-empty-array|object $rejection */ - public function reject(object|array $rejection, null|\Throwable $exception = null): void; + public function reject(array|object $rejection, \Throwable $exception = null, string $reason = null): void; public function teardown(): void; } diff --git a/src/RunnableInterface.php b/src/RunnableInterface.php index 07695fe..835e2e1 100644 --- a/src/RunnableInterface.php +++ b/src/RunnableInterface.php @@ -7,6 +7,4 @@ use Kiboko\Contract\Satellite\RunnableInterface as SatelliteRunableInterface; /** @deprecated Use \Kiboko\Contract\Job\RunnableInterface instead */ -interface RunnableInterface extends SatelliteRunableInterface -{ -} +interface RunnableInterface extends SatelliteRunableInterface {}