-
Notifications
You must be signed in to change notification settings - Fork 154
#758: applied_taxes of empty cart causes 'Internal server error' message on PHP 7.2 #759
#758: applied_taxes of empty cart causes 'Internal server error' message on PHP 7.2 #759
Conversation
Hi @therealtbs, please cover this case (try to load cart taxes if taxes are not set) with API-functional tests Examples: Guide: |
6832e5e
to
2f766b1
Compare
Hi @TomashKhamlai |
Hi @VladimirZaets, thank you for the review.
|
@therealtbs thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
@therealtbs thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
1 similar comment
@therealtbs thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
Hi @therealtbs, thank you for your contribution! |
…r error' message on PHP 7.2 #759
Description (*)
From PHP 7.2 onward there is a warning generated when attempting to call
count()
on anything that is not an array or an object implementing Countable, when a cart is created, initially the appliedTaxes are null until a product is added.Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)