From 47c4864dd11f60038689763c0dfe8f706c0cbf42 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Tue, 23 Apr 2024 00:22:13 +0200 Subject: [PATCH] version bump --- CHANGELOG.md | 11 +++++++++++ changelog/1000.md | 1 - changelog/918.md | 1 - changelog/933.md | 1 - changelog/937.md | 2 -- changelog/972.md | 1 - changelog/994.md | 1 - changelog/996.md | 1 - src/Smarty.php | 2 +- 9 files changed, 12 insertions(+), 9 deletions(-) delete mode 100644 changelog/1000.md delete mode 100644 changelog/918.md delete mode 100644 changelog/933.md delete mode 100644 changelog/937.md delete mode 100644 changelog/972.md delete mode 100644 changelog/994.md delete mode 100644 changelog/996.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 274c3b74a..e679aeb79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [5.1.0] - 2024-04-22 +- Prevent deprecation notices during compilation in PHP8.3 [#996](https://github.com/smarty-php/smarty/issues/996) +- Fix that getTemplateVars would return an array of objects instead of the assigned variables values [#994](https://github.com/smarty-php/smarty/issues/994) +- Fix Smarty::assign() not returning $this when called with an array as first parameter [#972](https://github.com/smarty-php/smarty/pull/972) +- Documented support for `{if $element is in $array}` syntax [#937](https://github.com/smarty-php/smarty/issues/937) +- Added support for `{if $element is not in $array}` syntax [#937](https://github.com/smarty-php/smarty/issues/937) +- Using stream variables in templates now throws a deprecation notice [#933](https://github.com/smarty-php/smarty/pull/933) +- Internal compiler classes always return a string (the internal has_code flag has been removed for simplicity) [#918](https://github.com/smarty-php/smarty/pull/918) +- Fix invalid classnames in Runtime code for foreach [#1000](https://github.com/smarty-php/smarty/issues/1000) + + ## [5.0.1] - 2024-03-27 - Fix error in Smarty\Smarty::compileAllTemplates() by including missing FilesystemIterator class [#966](https://github.com/smarty-php/smarty/issues/966) diff --git a/changelog/1000.md b/changelog/1000.md deleted file mode 100644 index 5aa31f8cc..000000000 --- a/changelog/1000.md +++ /dev/null @@ -1 +0,0 @@ -- Fix invalid classnames in Runtime code for foreach [#1000](https://github.com/smarty-php/smarty/issues/1000) \ No newline at end of file diff --git a/changelog/918.md b/changelog/918.md deleted file mode 100644 index 853fdd12e..000000000 --- a/changelog/918.md +++ /dev/null @@ -1 +0,0 @@ -- Internal compiler classes always return a string (the internal has_code flag has been removed for simplicity) [#918](https://github.com/smarty-php/smarty/pull/918) diff --git a/changelog/933.md b/changelog/933.md deleted file mode 100644 index 7c6633cfc..000000000 --- a/changelog/933.md +++ /dev/null @@ -1 +0,0 @@ -- Using stream variables in templates now throws a deprecation notice [#933](https://github.com/smarty-php/smarty/pull/933) diff --git a/changelog/937.md b/changelog/937.md deleted file mode 100644 index 37f80e99a..000000000 --- a/changelog/937.md +++ /dev/null @@ -1,2 +0,0 @@ -- Documented support for `{if $element is in $array}` syntax [#937](https://github.com/smarty-php/smarty/issues/937) -- Added support for `{if $element is not in $array}` syntax [#937](https://github.com/smarty-php/smarty/issues/937) \ No newline at end of file diff --git a/changelog/972.md b/changelog/972.md deleted file mode 100644 index e1e930a3c..000000000 --- a/changelog/972.md +++ /dev/null @@ -1 +0,0 @@ -- Fix Smarty::assign() not returning $this when called with an array as first parameter [#972](https://github.com/smarty-php/smarty/pull/972) \ No newline at end of file diff --git a/changelog/994.md b/changelog/994.md deleted file mode 100644 index 16c58c517..000000000 --- a/changelog/994.md +++ /dev/null @@ -1 +0,0 @@ -- Fix that getTemplateVars would return an array of objects instead of the assigned variables values [#994](https://github.com/smarty-php/smarty/issues/994) \ No newline at end of file diff --git a/changelog/996.md b/changelog/996.md deleted file mode 100644 index 3735bcc73..000000000 --- a/changelog/996.md +++ /dev/null @@ -1 +0,0 @@ -- Prevent deprecation notices during compilation in PHP8.3 [#996](https://github.com/smarty-php/smarty/issues/996) diff --git a/src/Smarty.php b/src/Smarty.php index 5a9654b69..dbb917262 100644 --- a/src/Smarty.php +++ b/src/Smarty.php @@ -54,7 +54,7 @@ class Smarty extends \Smarty\TemplateBase { /** * smarty version */ - const SMARTY_VERSION = '5.0.1'; + const SMARTY_VERSION = '5.1.0'; /** * define caching modes