Skip to content

Commit

Permalink
Fix psalm (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Aug 29, 2022
1 parent 922d5d1 commit fda034f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Product/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public function getIdentifiersModifiedSince(DateTime $sinceDate): array
$products = $this->apiClient->getProductApi()->all(50, ['search' => $searchBuilder->getFilters()]);
$identifiers = [];
foreach ($products as $product) {
Assert::isArray($product);
Assert::keyExists($product, 'identifier');
$productIdentifier = (string) $product['identifier'];
Assert::stringNotEmpty($productIdentifier);
Expand Down
1 change: 1 addition & 0 deletions src/ProductAssociations/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public function getIdentifiersModifiedSince(DateTime $sinceDate): array
$products = $this->apiClient->getProductApi()->all(50, ['search' => $searchBuilder->getFilters()]);
$identifiers = [];
foreach ($products as $product) {
Assert::isArray($product);
Assert::keyExists($product, 'identifier');
$productIdentifier = (string) $product['identifier'];
Assert::stringNotEmpty($productIdentifier);
Expand Down

0 comments on commit fda034f

Please sign in to comment.