Skip to content

Commit

Permalink
fix CategoryPlugin closure return type (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
livca-smile authored Oct 5, 2023
1 parent 9500898 commit 2e99fa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## [2.0.1] - 2023-09-20
[2.0.1]: https://github.com/Smile-SA/magento2-module-retailer-offer/compare/2.0.0...2.0.1

- Fix CategoryPlugin closure return type

## [2.0.0] - 2023-09-20
[2.0.0]: https://github.com/Smile-SA/magento2-module-retailer-offer/compare/1.8.1...2.0.0

Expand Down
2 changes: 1 addition & 1 deletion Plugin/CategoryPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(
public function aroundGetProductCount(Category $category, Closure $proceed): ?int
{
if (!$this->currentStore->getRetailer() || !$this->currentStore->getRetailer()->getId()) {
return $proceed();
return (int) $proceed();
}

/** @var Collection $collection */
Expand Down

0 comments on commit 2e99fa2

Please sign in to comment.