Skip to content

Commit

Permalink
Put back default value of $promotionApplicator in the constructor to …
Browse files Browse the repository at this point in the history
…null
  • Loading branch information
jdeveloper committed Jul 23, 2018
1 parent 0b41812 commit e90fb96
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -56,7 +56,7 @@ public function __construct(
PromotionEligibilityCheckerInterface $promotionEligibilityChecker,
EventDispatcherInterface $eventDispatcher,
RouterInterface $router,
?PromotionApplicatorInterface $promotionApplicator
?PromotionApplicatorInterface $promotionApplicator = null
) {
if($promotionApplicator == null){
@trigger_error("You need to supply an promotion applicator in order to work properly. In case you don't provide it, there will be valid cases that will fail due an incorrect recalculation.", \E_USER_DEPRECATED);
Expand Down

0 comments on commit e90fb96

Please sign in to comment.