Skip to content

Commit 4be0348

Browse files
committed
update: dependencies
1 parent 4cf7d10 commit 4be0348

129 files changed

Lines changed: 773 additions & 706 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.lock

Lines changed: 94 additions & 94 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/topics/join/join_each/code.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private function findRowsInDatabase(Rows $rows) : Rows
4141

4242
return (new Rows(...$rowsFromDb))
4343
// this would be a database SQL query in real life
44-
->filter(fn (Row $row) => \in_array($row->valueOf('id'), $rows->reduceToArray('id'), true));
44+
->filter(static fn (Row $row) => \in_array($row->valueOf('id'), $rows->reduceToArray('id'), true));
4545
}
4646
};
4747

src/adapter/etl-adapter-chartjs/src/Flow/ETL/Adapter/ChartJS/Chart/PieChart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function data() : array
7272
'data' => [
7373
'labels' => $labels,
7474
'datasets' => \array_values(\array_map(
75-
fn (array $dataset) : array => \array_merge($dataset, $options),
75+
static fn (array $dataset) : array => \array_merge($dataset, $options),
7676
$this->data['datasets']
7777
)),
7878
],

src/adapter/etl-adapter-csv/src/Flow/ETL/Adapter/CSV/CSVExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private function mapHeaders(array $headers) : array
202202
);
203203

204204
return \array_map(
205-
fn (string $header, int $index) : string => $header !== '' ? $header : 'e' . \str_pad(
205+
static fn (string $header, int $index) : string => $header !== '' ? $header : 'e' . \str_pad(
206206
(string) $index,
207207
2,
208208
'0',

src/adapter/etl-adapter-csv/src/Flow/ETL/Adapter/CSV/CSVLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function load(Rows $rows, FlowContext $context) : void
4949

5050
$normalizer = new RowsNormalizer(new EntryNormalizer($this->dateTimeFormat));
5151

52-
$headers = $rows->first()->entries()->map(fn (Entry $entry) => $entry->name());
52+
$headers = $rows->first()->entries()->map(static fn (Entry $entry) => $entry->name());
5353

5454
if ($rows->partitions()->count()) {
5555
$this->write($rows, $headers, $context, $rows->partitions()->toArray(), $normalizer);

src/adapter/etl-adapter-csv/src/Flow/ETL/Adapter/CSV/Detector/Options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function best() : Option
5656

5757
public function onlyValid() : self
5858
{
59-
return new self(\array_filter($this->options, fn (Option $option) : bool => $option->isValid()));
59+
return new self(\array_filter($this->options, static fn (Option $option) : bool => $option->isValid()));
6060
}
6161

6262
public function parse(string $line) : void

src/adapter/etl-adapter-csv/tests/Flow/ETL/Adapter/CSV/Tests/Integration/CSVExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function test_extracting_csv_empty_headers() : void
223223
],
224224
],
225225
\array_map(
226-
fn (Rows $r) => $r->toArray(),
226+
static fn (Rows $r) => $r->toArray(),
227227
\iterator_to_array($extractor->extract(flow_context(\Flow\ETL\DSL\config())))
228228
)
229229
);

src/adapter/etl-adapter-doctrine/src/Flow/ETL/Adapter/Doctrine/LiteralParameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function queryParamName() : string
2424
public function toQueryParam(Rows $rows) : array|bool|float|int|string|null
2525
{
2626
if (\is_array($this->value)) {
27-
return \array_filter($this->value, fn ($item) => \is_scalar($item) || $item === null);
27+
return \array_filter($this->value, static fn ($item) => \is_scalar($item) || $item === null);
2828
}
2929

3030
return \is_scalar($this->value) || $this->value === null ? $this->value : null;

src/adapter/etl-adapter-doctrine/src/Flow/ETL/Adapter/Doctrine/Parameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function toQueryParam(Rows $rows) : array
4444
{
4545
$values = $rows->reduceToArray($this->ref);
4646

47-
return \array_filter($values, fn ($value) => \is_scalar($value) || $value === null);
47+
return \array_filter($values, static fn ($value) => \is_scalar($value) || $value === null);
4848
}
4949

5050
public function type() : int|ArrayParameterType

src/adapter/etl-adapter-elasticsearch/src/Flow/ETL/Adapter/Elasticsearch/ElasticsearchPHP/ElasticsearchLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function load(Rows $rows, FlowContext $context) : void
6767
/**
6868
* @var array<int, array{body:array<string, mixed>,id:string}> $dataCollection
6969
*/
70-
$dataCollection = $rows->map(fn (Row $row) : Row => Row::create(
70+
$dataCollection = $rows->map(static fn (Row $row) : Row => Row::create(
7171
$factory->create($row),
7272
new JsonEntry('body', $row->toArray())
7373
))->toArray();

0 commit comments

Comments
 (0)