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

Fixed passing null is deprecated for htmlspecialchars in Mage_Core_Helper_Abstract #3324

Merged
merged 3 commits into from
Jun 30, 2023

Conversation

kyrena
Copy link
Contributor

@kyrena kyrena commented Jun 16, 2023

Description

This fix passing null to parameter 1 of type string is deprecated for htmlspecialchars with PHP 8.1/8.2.
Perhaps it's not the best way (I never had this warning when $addSlashes=true).
It seems that this appear on backend customer edit page.

See also this discussion comment.

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 Jun 16, 2023
@kyrena
Copy link
Contributor Author

kyrena commented Jun 16, 2023

lool found the reason: some module return null instead of return '' for getTabTitle...
so perhaps this is useless.

@luigifab luigifab added the PHP 8.1 Related to PHP 8.1 label Jun 16, 2023
@fballiano
Copy link
Contributor

I've commited @kiatng's version, I think it should be ok right?

@fballiano fballiano merged commit b20f568 into OpenMage:main Jun 30, 2023
@kyrena kyrena deleted the php82-tostring branch August 4, 2023 16:08
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.1 Related to PHP 8.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants