Skip to content

Commit

Permalink
fix hook parameter (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho authored Mar 15, 2024
1 parent 5b125c4 commit 169eed9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ The `postAddProductToCollection` hook is triggered after a product is added to t

## Parameters

1. \Isotope\Interfaces\IsotopeProduct `$product`
1. \Isotope\Model\ProductCollectionItem `$product`

The product that was added to the collection.
The product collection item that was added to the collection.

2. int `$quantity`

Expand Down Expand Up @@ -38,7 +38,7 @@ use Isotope\ServiceAnnotation\IsotopeHook;
*/
class PostAddProductToCollectionListener
{
public function __invoke(IsotopeProduct $product, $quantity, IsotopeProductCollection $collection, array $config): void
public function __invoke(ProductCollectionItem $item, $quantity, IsotopeProductCollection $collection, array $config): void
{
// Do something …
}
Expand Down

0 comments on commit 169eed9

Please sign in to comment.