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
Register commonly used deprecated modifiers to Smarty config #33136
Conversation
kpodemski
commented
Jul 7, 2023
Questions | Answers |
---|---|
Branch? | 8.1.x |
Description? | I discovered that many Smarty modifiers were not available and threw deprecate warnings after the recent Smarty upgrade. |
Type? | bug fix |
Category? | CO |
BC breaks? | no |
Deprecations? | no |
How to test? | Autotests and CI should be enough, to me, the best way to see before and after, was to see the modules translations page and theme translations page with debug mode enabled |
Fixed ticket? | Fixes #32703 |
Related PRs | n/a |
Sponsor company | Acme Company |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THANKS ! Not much to add the code speaks for itself.
cc @matks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kpodemski
Before, when visiting password reset page.
After change, no errors. ✅ |
Looks like there are duplications in this file eg. floatval, intval, json_encode, mt_rand, trim... PrestaShop/config/smarty.config.inc.php Lines 105 to 115 in 23158f4
PrestaShop/config/smarty.config.inc.php Lines 128 to 136 in 23158f4
Am I missing something or it does need a cleanup? |
// Native PHP Functions I think maybe like that works |
I encountered this problem today with array_merge in PrestaShop 8.1.3/PHP 8.1.25 when I first logged in to admin after a brand new install.
|
It's true we don't have |