Innmind /
Immutable
| 1 | <?php |
||
| 2 | declare(strict_types = 1); |
||
| 3 | |||
| 4 | namespace Innmind\Immutable; |
||
| 5 | |||
| 6 | /** |
||
| 7 | * Used to identify a key/value pair |
||
| 8 | * |
||
| 9 | * @template T |
||
| 10 | * @template S |
||
| 11 | * @psalm-immutable |
||
| 12 | */ |
||
| 13 | final class Pair |
||
| 14 | { |
||
| 15 | /** @var T */ |
||
|
0 ignored issues
–
show
|
|||
| 16 | private $key; |
||
| 17 | /** @var S */ |
||
| 18 | private $value; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @internal You should never have to manually create this object |
||
| 22 | * @param T $key |
||
| 23 | 40 | * @param S $value |
|
| 24 | */ |
||
| 25 | 40 | public function __construct($key, $value) |
|
| 26 | 40 | { |
|
| 27 | 40 | $this->key = $key; |
|
| 28 | $this->value = $value; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | 20 | * @return T |
|
| 33 | */ |
||
| 34 | 20 | public function key() |
|
| 35 | { |
||
| 36 | return $this->key; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | 17 | * @return S |
|
| 41 | */ |
||
| 42 | 17 | public function value() |
|
| 43 | { |
||
| 44 | return $this->value; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
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