@@ -49,7 +49,7 @@ public function sortedWells(FlowDirection $flowDirection): Collection
49
49
{
50
50
return $ this ->wells ()->sortBy (
51
51
/** @param TWell $content */
52
- function ($ content , string $ key ) use ($ flowDirection ): string {
52
+ function ($ content , string $ key ) use ($ flowDirection ): string { /** @phpstan-ignore missingType.parameter (is in template context) */
53
53
switch ($ flowDirection ->value ) {
54
54
case FlowDirection::ROW :
55
55
return $ key ;
@@ -72,7 +72,7 @@ public function freeWells(): Collection
72
72
{
73
73
return $ this ->wells ()->filter (
74
74
/** @param TWell $content */
75
- static fn ($ content ): bool => $ content === self ::EMPTY_WELL
75
+ static fn ($ content ): bool => $ content === self ::EMPTY_WELL /** @phpstan-ignore missingType.parameter (is in template context) */
76
76
);
77
77
}
78
78
@@ -81,14 +81,14 @@ public function filledWells(): Collection
81
81
{
82
82
return $ this ->wells ()->filter (
83
83
/** @param TWell $content */
84
- static fn ($ content ): bool => $ content !== self ::EMPTY_WELL
84
+ static fn ($ content ): bool => $ content !== self ::EMPTY_WELL /** @phpstan-ignore missingType.parameter (is in template context) */
85
85
);
86
86
}
87
87
88
88
/** @return callable(TWell|null $content, string $coordinatesString): bool */
89
89
public function matchRow (string $ row ): callable
90
90
{
91
- return function ($ content , string $ coordinatesString ) use ($ row ): bool {
91
+ return function ($ content , string $ coordinatesString ) use ($ row ): bool { /** @phpstan-ignore missingType.parameter (is in template context) */
92
92
$ coordinates = Coordinates::fromString ($ coordinatesString , $ this ->coordinateSystem );
93
93
94
94
return $ coordinates ->row === $ row ;
@@ -98,7 +98,7 @@ public function matchRow(string $row): callable
98
98
/** @return callable(TWell|null $content, string $coordinatesString): bool */
99
99
public function matchColumn (int $ column ): callable
100
100
{
101
- return function ($ content , string $ coordinatesString ) use ($ column ): bool {
101
+ return function ($ content , string $ coordinatesString ) use ($ column ): bool { /** @phpstan-ignore missingType.parameter (is in template context) */
102
102
$ coordinates = Coordinates::fromString ($ coordinatesString , $ this ->coordinateSystem );
103
103
104
104
return $ coordinates ->column === $ column ;
@@ -119,7 +119,7 @@ public function toWellWithCoordinateMapper(): callable
119
119
public function toWellWithCoordinatesMapper (): callable
120
120
{
121
121
// @phpstan-ignore return.type (generic not inferred)
122
- return fn ($ content , string $ coordinatesString ): WellWithCoordinates => new WellWithCoordinates (
122
+ return fn ($ content , string $ coordinatesString ): WellWithCoordinates => new WellWithCoordinates ( /** @phpstan-ignore missingType.parameter (is in template context) */
123
123
$ content ,
124
124
Coordinates::fromString ($ coordinatesString , $ this ->coordinateSystem )
125
125
);
@@ -135,7 +135,7 @@ public function isConsecutive(FlowDirection $flowDirection): bool
135
135
$ positions = $ this ->filledWells ()
136
136
->map (
137
137
/** @param TWell $content */
138
- fn ($ content , string $ coordinatesString ): int => Coordinates::fromString ($ coordinatesString , $ this ->coordinateSystem )->position ($ flowDirection )
138
+ fn ($ content , string $ coordinatesString ): int => Coordinates::fromString ($ coordinatesString , $ this ->coordinateSystem )->position ($ flowDirection ) /** @phpstan-ignore missingType.parameter (is in template context) */
139
139
);
140
140
141
141
if ($ positions ->isEmpty ()) {
0 commit comments