Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Php8.1 #130

Merged
merged 2 commits into from
Jun 8, 2022
Merged

Php8.1 #130

merged 2 commits into from
Jun 8, 2022

Conversation

ah-net
Copy link
Contributor

@ah-net ah-net commented Jun 1, 2022

  • Added Php 8.1 support
  • Bumped version number for new release to 4.2.0
  • Added return type wil change to one function to keep support for php 7.4. If support for php 7.4 is dropped this can be fixed properly

fixes #129

@Hnto Hnto merged commit f1024b5 into EmicoEcommerce:master Jun 8, 2022
@@ -266,7 +266,11 @@ protected function scalarValue($value)
$value = $this->normalizeExponent($value);
}

return html_entity_decode($value, ENT_NOQUOTES | ENT_HTML5);
if (!empty($value)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ah-net I think this change causes another regression we had in our shop with 4.2.0, where almost all our products were exported with <stock/> instead of <stock>0</stock> causing the feed to not be validated correctly.

0 is also empty.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your right. Ill make an pull request

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made an pull request #134

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

Successfully merging this pull request may close these issues.

Compatibility with Magento 2.4.4 and Php 8.1
3 participants