Jump to content

Edit History

Paul C

Paul C


typo

On 9/20/2023 at 10:07 AM, Yelish said:

I congratulate you on your solution. The adaptations to the Tools class by PrestaShop are determined by the latest versions of Php 8, where it is not allowed to have functions in classes that correspond to core functions. For backward compatibility, if you are a programmer, I would advise you to create your own functions in classes and work with them based on the state of the client's Tools class. Best regards, and I hope you have a great day.

Nothing to do with PHP 8. Those functions go way, way back. Native functions have existed and were alternatives since PHP 5.2.0.... safe to use json_encode() and json_decode() in modules that need to be backwards compatible with 1.7.

Paul C

Paul C

On 9/20/2023 at 10:07 AM, Yelish said:

I congratulate you on your solution. The adaptations to the Tools class by PrestaShop are determined by the latest versions of Php 8, where it is not allowed to have functions in classes that correspond to core functions. For backward compatibility, if you are a programmer, I would advise you to create your own functions in classes and work with them based on the state of the client's Tools class. Best regards, and I hope you have a great day.

Nothing to do with PHP 8. Those function go way, way back. Native functions have existed and were alternatives since PHP 5.2.0.... safe to use json_encode() and json_decode() in modules that need to be backwards compatible with 1.7.

×
×
  • Create New...