Skip to content

Commit

Permalink
Fix client api version to 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
JoMessina committed Jan 31, 2024
1 parent b9ba56b commit ef45ba6
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpstan-9.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PHPStan level 8
name: PHPStan level 9
on: push
jobs:
phpstan-9:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"psr/log": "^3.0",
"nyholm/psr7": "^1.5",
"php-etl/bucket": "*",
"php-etl/magento2-api-client": "^0.1.0",
"php-etl/magento2-api-client": "2.4.x-dev",
"psr/simple-cache": "^3.0",
"php-etl/mapping-contracts": "0.4.*"
},
Expand Down
29 changes: 14 additions & 15 deletions composer.lock

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

1 change: 0 additions & 1 deletion src/CustomerExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Kiboko\Component\Bucket\AcceptanceResultBucket;
use Kiboko\Component\Bucket\RejectionResultBucket;
use Kiboko\Contract\Bucket\RejectionResultBucketInterface;
use Kiboko\Contract\Bucket\ResultBucketInterface;
use Kiboko\Contract\Pipeline\ExtractorInterface;
use Kiboko\Magento\Client;
use Kiboko\Magento\Exception\GetV1CustomersSearchInternalServerErrorException;
Expand Down
6 changes: 2 additions & 4 deletions src/FilterGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ public function withFilter(FilterInterface $filter): self
return $this;
}

public function withFilters(FilterInterface ...$filter): self
public function withFilters(FilterInterface ...$filters): self
{
foreach ($filter as $item) {
$this->filters[] = $item;
}
array_push($this->filters, ...$filters);

return $this;
}
Expand Down
6 changes: 2 additions & 4 deletions src/QueryParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ public function withGroup(FilterGroup $group): self
return $this;
}

public function withGroups(FilterGroup ...$group): self
public function withGroups(FilterGroup ...$groups): self
{
foreach ($group as $item) {
$this->groups[] = $item;
}
array_push($this->groups, ...$groups);

return $this;
}
Expand Down

0 comments on commit ef45ba6

Please sign in to comment.