Skip to content

Commit 7a80530

Browse files
authored
Update type annotations in namespace MLL\Utils\Tecan to use array<int> over array<int, int>
1 parent c96ba87 commit 7a80530

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ See [GitHub releases](https://github.com/mll-lab/php-utils/releases).
99

1010
## Unreleased
1111

12+
## v5.12.1
13+
14+
### Fixed
15+
16+
- Update type annotations in namespace `MLL\Utils\Tecan` to use `array<int>` over `array<int, int>`
17+
1218
## v5.12.0
1319

1420
### Added

src/Tecan/BasicCommands/ReagentDistribution.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ class ReagentDistribution extends Command
2121

2222
private ReagentDistributionDirection $direction;
2323

24-
/** @var array<int, int>|null */
24+
/** @var array<int>|null */
2525
private ?array $excludedTargetWells;
2626

2727
/**
2828
* @param int|null $numberOfDitiReuses optional maximum number of DiTi reuses allowed (default 1 = no DiTi reuse)
2929
* @param int|null $numberOfMultiDisp optional maximum number of dispenses in a multidispense sequence (default 1 = no multi-dispense)
3030
* @param ReagentDistributionDirection|null $direction optional pipetting direction (default = LEFT_TO_RIGHT)
31-
* @param array<int, int>|null $excludedTargetWells Optional list of wells in destination labware to be excluded from pipetting
31+
* @param array<int>|null $excludedTargetWells Optional list of wells in destination labware to be excluded from pipetting
3232
*/
3333
public function __construct(
3434
AspirateAndDispenseParameters $source,

src/Tecan/CustomCommands/DispenseParameters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ class DispenseParameters
99
{
1010
public Rack $rack;
1111

12-
/** @var array<int, int> */
12+
/** @var array<int> */
1313
public array $dispensePositions;
1414

15-
/** @param array<int, int> $dispensePositions */
15+
/** @param array<int> $dispensePositions */
1616
public function __construct(Rack $rack, array $dispensePositions)
1717
{
1818
$this->rack = $rack;

src/Tecan/CustomCommands/MLLReagentDistribution.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function toString(): string
4848
return $reagentDistribution->toString();
4949
}
5050

51-
/** @return array<int, int> */
51+
/** @return array<int> */
5252
private function excludedWells(): array
5353
{
5454
$min = min($this->target->dispensePositions);

0 commit comments

Comments
 (0)