Skip to content

Commit

Permalink
CS Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
norberttech committed Sep 16, 2024
1 parent 55f0664 commit 2bda184
Show file tree
Hide file tree
Showing 10 changed files with 277 additions and 273 deletions.
186 changes: 93 additions & 93 deletions composer.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
</projectFiles>
<issueHandlers>
<RedundantConditionGivenDocblockType errorLevel="suppress" />
<ReferenceConstraintViolation errorLevel="suppress" />
<DocblockTypeContradiction errorLevel="suppress" />
<RiskyTruthyFalsyComparison errorLevel="suppress" />
<LessSpecificReturnStatement errorLevel="suppress" />
Expand Down
2 changes: 1 addition & 1 deletion src/core/etl/src/Flow/ETL/DSL/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ function to_memory(Memory $memory) : MemoryLoader
/**
* Convert rows to an array and store them in passed array variable.
*
* @param array<array<mixed>> $array
* @param-out array<array<mixed>> $array
*/
#[DocumentationDSL(module: Module::CORE, type: DSLType::LOADER)]
#[DocumentationExample(topic: 'data_sink', example: 'array')]
Expand Down
9 changes: 6 additions & 3 deletions src/core/etl/src/Flow/ETL/Loader/ArrayLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@

final class ArrayLoader implements Loader
{
public function __construct(private array &$memory)
/**
* @param-out array<array<mixed>> $array
*/
public function __construct(private array &$array)
{
}

public function load(Rows $rows, FlowContext $context) : void
{
$this->memory = \array_merge(
$this->memory,
$this->array = \array_merge(
$this->array,
$rows->toArray()
);
}
Expand Down
94 changes: 47 additions & 47 deletions tools/box/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2bda184

Please sign in to comment.