Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure value is string to avoid type error in used library #3564

Closed
wants to merge 2 commits into from

Conversation

Flyingmana
Copy link
Contributor

Description (*)

There was an error on PHP 8.2 about urlencode() expecting a string.
Should probably get fixed upstream in \Zend_Locale_Data::getList / vendor/shardj/zf1-future/library/Zend/Locale/Data.php

Related Pull Requests

#3234 (resolves an error reported there)

Fixed Issues (if relevant)

  1. Fixes OpenMage/magento-lts#<issue_number>

Manual testing scenarios (*)

have error reporting -1
cleared cache
login into admin area

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)
  • Add yourself to contributors list

@github-actions github-actions bot added the Component: Core Relates to Mage_Core label Oct 1, 2023
@Flyingmana Flyingmana added PHP 8.2 Related to PHP 8.2 and removed Component: Core Relates to Mage_Core labels Oct 1, 2023
@Flyingmana
Copy link
Contributor Author

although Iam not sure why we have this issue, as we depend on a version which should already have this fix https://github.com/Shardj/zf1-future/blob/release-1.23.5/library/Zend/Locale/Data.php#L336

@fballiano
Copy link
Contributor

I can't seem to reproduce the error, the version of the file that I have already has the cast to string:

Screenshot 2023-10-01 alle 21 37 24

@Flyingmana
Copy link
Contributor Author

yeah, not sure, maybe updating the source without updating the composer dependencies(thats what happened for me when I tested it first).

It was reported, so I think its at least worth to consider fixing it there, even as in theory it should not be possible to happen.

@fballiano
Copy link
Contributor

maybe it was using a OM version before the one when we strictly required zf1f version?

@github-actions github-actions bot added the Component: Core Relates to Mage_Core label Oct 21, 2023
@fballiano
Copy link
Contributor

At the moment I'll close this, still can't reproduce, probably it's being fixed in a previous release ;-)

@fballiano fballiano closed this Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Core Relates to Mage_Core PHP 8.2 Related to PHP 8.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants