From 5936795bef81129ee601cc6eca03e46be94b6c4c Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Mon, 26 Feb 2024 12:18:48 +0100 Subject: [PATCH] Prevent deprecation notices for implode, json_encode and substr modifiers. --- CHANGELOG.md | 3 +++ libs/plugins/modifier.implode.php | 15 +++++++++++++++ libs/plugins/modifiercompiler.json_encode.php | 11 +++++++++++ libs/plugins/modifiercompiler.substr.php | 12 ++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 libs/plugins/modifier.implode.php create mode 100644 libs/plugins/modifiercompiler.json_encode.php create mode 100644 libs/plugins/modifiercompiler.substr.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 04be00ec..bf837c55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- Using the `|implode`, `|json_encode` and `|substr` modifiers does not generate a deprecation warning anymore as they will continue to be supported in v5 [#939](https://github.com/smarty-php/smarty/issues/939) + ## [4.3.4] - 2023-09-14 ## [4.3.3] - 2023-09-14 diff --git a/libs/plugins/modifier.implode.php b/libs/plugins/modifier.implode.php new file mode 100644 index 00000000..679d71d7 --- /dev/null +++ b/libs/plugins/modifier.implode.php @@ -0,0 +1,15 @@ +