Skip to content

Commit f012687

Browse files
authored
Remove usage of References::init in Row class (#1407)
1 parent 59f3433 commit f012687

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core/etl/src/Flow/ETL/Row.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Flow\ETL\Exception\InvalidArgumentException;
88
use Flow\ETL\Hash\{Algorithm, NativePHPHash};
9-
use Flow\ETL\Row\{Entries, Entry, Reference, References, Schema};
9+
use Flow\ETL\Row\{Entries, Entry, Reference, Schema};
1010

1111
final readonly class Row
1212
{
@@ -82,8 +82,8 @@ public function keep(string|Reference ...$names) : self
8282
{
8383
$entries = [];
8484

85-
foreach (References::init(...$names) as $ref) {
86-
$entries[] = $this->entries->get($ref);
85+
foreach ($names as $name) {
86+
$entries[] = $this->entries->get($name);
8787
}
8888

8989
return new self(new Entries(...$entries));
@@ -113,9 +113,9 @@ public function remove(string|Reference ...$names) : self
113113
{
114114
$namesToRemove = [];
115115

116-
foreach (References::init(...$names) as $ref) {
117-
if ($this->entries->has($ref)) {
118-
$namesToRemove[] = $ref;
116+
foreach ($names as $name) {
117+
if ($this->entries->has($name)) {
118+
$namesToRemove[] = $name;
119119
}
120120
}
121121

0 commit comments

Comments
 (0)