Innmind /
Immutable
| 1 | <?php |
||
| 2 | declare(strict_types = 1); |
||
| 3 | |||
| 4 | namespace Innmind\Immutable\Either; |
||
| 5 | |||
| 6 | use Innmind\Immutable\{ |
||
| 7 | Either, |
||
| 8 | Maybe, |
||
| 9 | }; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @template L |
||
| 13 | * @template R |
||
| 14 | * @psalm-immutable |
||
| 15 | * @internal |
||
| 16 | */ |
||
| 17 | interface Implementation |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @template T |
||
| 21 | * |
||
| 22 | * @param callable(R): T $map |
||
| 23 | * |
||
| 24 | * @return self<L, T> |
||
| 25 | */ |
||
| 26 | public function map(callable $map): self; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @template A |
||
| 30 | * @template B |
||
| 31 | * |
||
| 32 | * @param callable(R): Either<A, B> $map |
||
| 33 | * |
||
| 34 | * @return Either<L|A, B> |
||
| 35 | */ |
||
| 36 | public function flatMap(callable $map): Either; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @template T |
||
| 40 | * |
||
| 41 | * @param callable(L): T $map |
||
| 42 | * |
||
| 43 | * @return self<T, R> |
||
| 44 | */ |
||
| 45 | public function leftMap(callable $map): self; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @template T |
||
| 49 | * |
||
| 50 | * @param callable(R): T $right |
||
| 51 | * @param callable(L): T $left |
||
| 52 | * |
||
| 53 | * @return T |
||
|
0 ignored issues
–
show
|
|||
| 54 | */ |
||
| 55 | public function match(callable $right, callable $left); |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @template A |
||
| 59 | * @template B |
||
| 60 | * |
||
| 61 | * @param callable(L): Either<A, B> $otherwise |
||
| 62 | * |
||
| 63 | * @return Either<A, R|B> |
||
| 64 | */ |
||
| 65 | public function otherwise(callable $otherwise): Either; |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @template A |
||
| 69 | * |
||
| 70 | * @param callable(R): bool $predicate |
||
| 71 | * @param callable(): A $otherwise |
||
| 72 | * |
||
| 73 | * @return self<L|A, R> |
||
| 74 | */ |
||
| 75 | public function filter(callable $predicate, callable $otherwise): self; |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return Maybe<R> |
||
| 79 | */ |
||
| 80 | public function maybe(): Maybe; |
||
| 81 | } |
||
| 82 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths