Skip to content

Commit

Permalink
Updated generics types
Browse files Browse the repository at this point in the history
  • Loading branch information
gplanchat committed Nov 13, 2023
1 parent 5e0b1b7 commit 632e119
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FlushableInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

namespace Kiboko\Contract\Pipeline;

use Kiboko\Component\Bucket\EmptyResultBucket;
use Kiboko\Contract\Bucket\ResultBucketInterface;

/**
* @template Type
*/
interface FlushableInterface
{
/** @return ResultBucketInterface<Type> */
/** @return ResultBucketInterface<Type>|EmptyResultBucket */
public function flush(): ResultBucketInterface;

Check failure on line 16 in src/FlushableInterface.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Contract\Pipeline\FlushableInterface::flush() has invalid return type Kiboko\Component\Bucket\EmptyResultBucket.

Check failure on line 16 in src/FlushableInterface.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Contract\Pipeline\FlushableInterface::flush() return type with generic interface Kiboko\Contract\Bucket\ResultBucketInterface does not specify its types: Type

Check failure on line 16 in src/FlushableInterface.php

View workflow job for this annotation

GitHub Actions / phpstan

PHPDoc tag @return with type Kiboko\Component\Bucket\EmptyResultBucket|Kiboko\Contract\Bucket\ResultBucketInterface<Type> is not subtype of native type Kiboko\Contract\Bucket\ResultBucketInterface.
}

0 comments on commit 632e119

Please sign in to comment.