@@ -49,7 +49,7 @@ public function sortedWells(FlowDirection $flowDirection): Collection
4949 {
5050 return $ this ->wells ()->sortBy (
5151 /** @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) */
5353 switch ($ flowDirection ->value ) {
5454 case FlowDirection::ROW :
5555 return $ key ;
@@ -72,7 +72,7 @@ public function freeWells(): Collection
7272 {
7373 return $ this ->wells ()->filter (
7474 /** @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) */
7676 );
7777 }
7878
@@ -81,14 +81,14 @@ public function filledWells(): Collection
8181 {
8282 return $ this ->wells ()->filter (
8383 /** @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) */
8585 );
8686 }
8787
8888 /** @return callable(TWell|null $content, string $coordinatesString): bool */
8989 public function matchRow (string $ row ): callable
9090 {
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) */
9292 $ coordinates = Coordinates::fromString ($ coordinatesString , $ this ->coordinateSystem );
9393
9494 return $ coordinates ->row === $ row ;
@@ -98,7 +98,7 @@ public function matchRow(string $row): callable
9898 /** @return callable(TWell|null $content, string $coordinatesString): bool */
9999 public function matchColumn (int $ column ): callable
100100 {
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) */
102102 $ coordinates = Coordinates::fromString ($ coordinatesString , $ this ->coordinateSystem );
103103
104104 return $ coordinates ->column === $ column ;
@@ -119,7 +119,7 @@ public function toWellWithCoordinateMapper(): callable
119119 public function toWellWithCoordinatesMapper (): callable
120120 {
121121 // @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) */
123123 $ content ,
124124 Coordinates::fromString ($ coordinatesString , $ this ->coordinateSystem )
125125 );
@@ -135,7 +135,7 @@ public function isConsecutive(FlowDirection $flowDirection): bool
135135 $ positions = $ this ->filledWells ()
136136 ->map (
137137 /** @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) */
139139 );
140140
141141 if ($ positions ->isEmpty ()) {
0 commit comments