Skip to content

Commit 4d3f910

Browse files
committed
Fixed PHPStan generics definition
1 parent 363e8eb commit 4d3f910

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

composer.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/FlushableInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
use Kiboko\Contract\Bucket\ResultBucketInterface;
66

77
/**
8-
* @template T
8+
* @template Type
99
*/
1010
interface FlushableInterface
1111
{
12+
/** @return ResultBucketInterface<Type> */
1213
public function flush(): ResultBucketInterface;
1314
}

src/PipelineRunnerInterface.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
22

33
namespace Kiboko\Contract\Pipeline;
44

5+
use Kiboko\Contract\Bucket\ResultBucketInterface;
6+
7+
/**
8+
* @template Type
9+
*/
510
interface PipelineRunnerInterface
611
{
712
/**
813
* @param \Iterator<array|object> $source
9-
* @param \Generator<array|object> $async
14+
* @param \Generator<mixed, Type, ResultBucketInterface<Type>, void> $async
1015
* @return \Iterator<array|object>
1116
*/
1217
public function run(

0 commit comments

Comments
 (0)