Skip to content

Commit

Permalink
https://github.com/mage2pro/core/issues/174
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Nov 15, 2022
1 parent 174da08 commit 7e88e3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions Qa/lib/validation/assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ function df_ar($v, $c = null, $m = null) {return dfcf(function($v, $c = null, $m
function df_assert($cond, $m = null) {return $cond ?: df_error($m);}

/**
* @used-by df_wishlist_item_candidates()
* @used-by \Df\GoogleFont\Fonts\Sprite::datumPoints()
* @used-by \Df\Xml\X::importArray()
* @param array $v
Expand Down
11 changes: 4 additions & 7 deletions Wishlist/lib/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@
* includes the configurable product as the first element of the result's array.
* We do not need it, so we filter it out.
* @used-by frugue/core/view/frontend/templates/wishlist/item/column/image.phtml
* @param I $i
* @return P[]
* @return P[]|string
*/
function df_wishlist_item_candidates(I $i) {return df_not_configurable(
$i->getProduct()->getTypeInstance()->prepareForCartAdvanced(
$i->getBuyRequest(), $i->getProduct(), T::PROCESS_MODE_LITE
)
);}
function df_wishlist_item_candidates(I $i) {return df_not_configurable(df_assert_array(
$i->getProduct()->getTypeInstance()->prepareForCartAdvanced($i->getBuyRequest(), $i->getProduct(), T::PROCESS_MODE_LITE)
));}

0 comments on commit 7e88e3b

Please sign in to comment.