File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
app/code/Magento/GroupedProduct/Model/Wishlist/Product Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \GroupedProduct \Model \Wishlist \Product ;
7
9
8
10
use Magento \Wishlist \Model \Item as WishlistItem ;
@@ -25,7 +27,7 @@ class Item
25
27
public function beforeRepresentProduct (
26
28
WishlistItem $ subject ,
27
29
Product $ product
28
- ) {
30
+ ): array {
29
31
if ($ product ->getTypeId () === TypeGrouped::TYPE_CODE
30
32
&& $ product ->getId () === $ subject ->getProduct ()->getId ()
31
33
) {
@@ -72,9 +74,9 @@ public function beforeRepresentProduct(
72
74
*/
73
75
public function beforeCompareOptions (
74
76
WishlistItem $ subject ,
75
- $ options1 ,
76
- $ options2
77
- ) {
77
+ array $ options1 ,
78
+ array $ options2
79
+ ): array {
78
80
$ diff = array_diff_key ($ options1 , $ options2 );
79
81
80
82
if (!$ diff ) {
You can’t perform that action at this time.
0 commit comments