Skip to content

Commit ef2b850

Browse files
committed
Fixing PHPStan level 9 issues
1 parent 2e71ef5 commit ef2b850

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/RunnableInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66

77
use Kiboko\Contract\Satellite\RunnableInterface as SatelliteRunableInterface;
88

9-
/** @deprecated Use \Kiboko\Contract\Job\RunnableInterface instead */
9+
/** @deprecated Use \Kiboko\Contract\Satellite\RunnableInterface instead */
1010
interface RunnableInterface extends SatelliteRunableInterface {}

src/SchedulingInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace Kiboko\Contract\Pipeline;
66

7+
use Kiboko\Contract\Satellite\RunnableInterface;
8+
79
interface SchedulingInterface
810
{
911
public function job(RunnableInterface $job): self;

src/StepRejectionInterface.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44

55
namespace Kiboko\Contract\Pipeline;
66

7+
/**
8+
* @template Type
9+
*/
710
interface StepRejectionInterface
811
{
9-
/** @param non-empty-array<mixed>|object $rejection */
12+
/** @param Type $rejection */
1013
public function reject(array|object $rejection, \Throwable $exception = null): void;
1114

12-
/** @param non-empty-array<array-key, mixed>|object $rejection */
15+
/** @param Type $rejection */
1316
public function rejectWithReason(array|object $rejection, string $reason, \Throwable $exception = null): void;
1417
}

0 commit comments

Comments
 (0)