Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

#758: applied_taxes of empty cart causes 'Internal server error' message on PHP 7.2 #759

Merged

Conversation

therealtbs
Copy link

@therealtbs therealtbs commented Jun 28, 2019

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)

  1. Cart applied_taxes of empty cart causes 'Internal server error' message on PHP 7.2 #758: Cart applied_taxes of empty cart causes 'Internal server error' message on PHP 7.2

Manual testing scenarios (*)

  1. See reproduction steps of Cart applied_taxes of empty cart causes 'Internal server error' message on PHP 7.2 #758

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@therealtbs therealtbs force-pushed the 758-cart-applied_taxes-null branch from 6832e5e to 2f766b1 Compare June 30, 2019 15:57
@therealtbs therealtbs marked this pull request as ready for review June 30, 2019 17:01
@therealtbs therealtbs changed the title #758: applied_taxes of empty cart causes 'Internal server error' message on PHP 7.2 - WIP #758: applied_taxes of empty cart causes 'Internal server error' message on PHP 7.2 Jul 12, 2019
@naydav
Copy link
Contributor

naydav commented Jul 12, 2019

Hi @TomashKhamlai
Please verify the fix.
Thanks

@magento-engcom-team
Copy link
Contributor

Hi @VladimirZaets, thank you for the review.
ENGCOM-5436 has been created to process this Pull Request
✳️ @VladimirZaets, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@magento-engcom-team
Copy link
Contributor

@therealtbs thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

@TomashKhamlai TomashKhamlai added the QA in progress We are checking label Jul 13, 2019
@magento-engcom-team
Copy link
Contributor

@therealtbs thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

1 similar comment
@magento-engcom-team
Copy link
Contributor

@therealtbs thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

@TomashKhamlai TomashKhamlai added QA passed and removed QA in progress We are checking labels Jul 16, 2019
@magento-engcom-team magento-engcom-team merged commit 2f766b1 into magento:2.3-develop Jul 24, 2019
@ghost
Copy link

ghost commented Jul 24, 2019

Hi @therealtbs, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants