Skip to content

Commit

Permalink
PHP Stan fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
roma84 committed Jul 19, 2023
1 parent 81023bd commit 0d973fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Model/Resolver/Testimonials/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ public function getIdentities(array $resolvedData): array
{
$ids = [];
$idKey = 'testimonial_id';
if (isset($item[$idKey])) {
$ids[] = sprintf('%s_%s', $this->cacheTag, $item[$idKey]);
$items = $resolvedData['items'] ?? [];
foreach ($items as $item) {
if (isset($item[$idKey])) {
$ids[] = sprintf('%s_%s', $this->cacheTag, $item[$idKey]);
}
}

if (!empty($ids)) {
Expand Down
1 change: 1 addition & 0 deletions Model/ResourceModel/Data/Grid/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public function getAggregations()
public function setAggregations($aggregations)
{
$this->aggregations = $aggregations;
return $this;
}

/**
Expand Down

1 comment on commit 0d973fc

@ci-swissuplabs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! All tests are passed!

Please sign in to comment.