Skip to content

Commit

Permalink
Update develop dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Aug 20, 2024
1 parent 04b7d4c commit 9510a41
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@
"ext-dom": "*",
"ext-xdebug": "*",
"doctrine/collections": "^2.2.2",
"friendsofphp/php-cs-fixer": "^3.57.2",
"phpbench/phpbench": "^1.2.15",
"phpstan/phpstan": "^1.11.2",
"friendsofphp/php-cs-fixer": "^3.62.0",
"phpbench/phpbench": "^1.3.1",
"phpstan/phpstan": "^1.11.11",
"phpstan/phpstan-deprecation-rules": "^1.2.0",
"phpstan/phpstan-phpunit": "^1.4.0",
"phpstan/phpstan-strict-rules": "^1.6.0",
"phpunit/phpunit": "^10.5.16 || ^11.1.3",
"symfony/var-dumper": "^6.4.6 || ^7.0.7"
"phpunit/phpunit": "^10.5.16 || ^11.3.1",
"symfony/var-dumper": "^6.4.6 || ^7.1.3"
},
"autoload": {
"psr-4": {
"League\\Csv\\": "src"
"League\\Csv\\": "src/"
},
"files": ["src/functions_include.php"]
},
Expand Down
8 changes: 6 additions & 2 deletions src/Fragment/Expression.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ public function query(TabularDataReader $tabularDataReader): iterable
$nbColumns = Type::Row === $this->type ? 0 : $this->getTabularDataColumnCount($tabularDataReader);

$statements = [] === $this->selections ? [] : match ($this->type) {
Type::Row => $this->queryByRows($nbColumns),
Type::Row => $this->queryByRows(),
Type::Column => $this->queryByColumns($nbColumns),
Type::Cell => $this->queryByCells($nbColumns),
};
Expand All @@ -373,6 +373,10 @@ public function query(TabularDataReader $tabularDataReader): iterable
}

/**
* @throws Exception
* @throws InvalidArgument
* @throws ReflectionException
*
* @return iterable<string, Statement>
*/
private function queryByCells(int $nbColumns = 0): iterable
Expand All @@ -390,7 +394,7 @@ private function queryByCells(int $nbColumns = 0): iterable
*
* @return iterable<string, Statement>
*/
private function queryByRows(int $nbColumns = 0): iterable
private function queryByRows(): iterable
{
$predicate = fn (array $record, int $offset): bool => [] !== array_filter(
$this->selections,
Expand Down

0 comments on commit 9510a41

Please sign in to comment.