@@ -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 { /** @phpstan-ignore missingType.parameter (is in template context) */
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 ;
@@ -70,9 +70,9 @@ function ($content, string $key) use ($flowDirection): string { /** @phpstan-ign
7070 /** @return Collection<string, null> */
7171 public function freeWells (): Collection
7272 {
73- return $ this ->wells ()->filter (
73+ return $ this ->wells ()->filter ( // @phpstan-ignore return.type (generic wrongly interpreted)
7474 /** @param TWell $content */
75- static fn ($ content ): bool => $ content === self ::EMPTY_WELL /** @phpstan-ignore missingType.parameter (is in template context) */
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 /** @phpstan-ignore missingType.parameter (is in template context) */
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 { /** @phpstan-ignore missingType.parameter (is in template context) */
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 { /** @phpstan-ignore missingType.parameter (is in template context) */
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 ( /** @phpstan-ignore missingType.parameter (is in template context) */
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 );
0 commit comments