diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 2a172a0..886cf6c 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -34,6 +34,7 @@ 'error_suppression' => true, 'ereg_to_preg' => true, 'dir_constant' => true, + 'phpdoc_align' => ['align' => 'left'], ]) ->setFinder($finder) ->setCacheFile('.php-cs-fixer.cache') // forward compatibility with 3.x line diff --git a/src/JobCodeInterface.php b/src/JobCodeInterface.php new file mode 100644 index 0000000..c61874b --- /dev/null +++ b/src/JobCodeInterface.php @@ -0,0 +1,7 @@ + $source - * @param \Generator, InputType|null, void> $coroutine - * @param StepRejectionInterface $rejection - * @param StepStateInterface $state + * @param StepRejectionInterface $rejection + * * @return \Iterator|null> */ public function run( diff --git a/src/SchedulingInterface.php b/src/SchedulingInterface.php index fa56779..b1c94da 100644 --- a/src/SchedulingInterface.php +++ b/src/SchedulingInterface.php @@ -8,5 +8,5 @@ interface SchedulingInterface { - public function job(RunnableInterface $job): self; + public function job(JobCodeInterface $job, RunnableInterface $job): self; }