Skip to content

Commit 0d5954b

Browse files
committed
Store fixers as list
1 parent 7830995 commit 0d5954b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Fixers.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,14 @@
99
final readonly class Fixers
1010
{
1111
/**
12-
* @var array<class-string<FixerInterface>, FixerInterface>
12+
* @var list<FixerInterface>
1313
*/
1414
public array $value;
1515

1616
public function __construct(
1717
FixerInterface ...$value,
1818
) {
19-
$this->value = array_combine(
20-
array_map(fn($fixer) => $fixer::class, $value),
21-
array_values($value),
22-
);
19+
$this->value = array_values($value);
2320
}
2421

2522
public function merge(self $customFixers) : self

0 commit comments

Comments
 (0)