Compare commits

...

6 Commits

Author SHA1 Message Date
Simon Wisselink 287e12c3be Merge branch 'master' into 979_setErrorUnassigned 2024-05-29 21:21:36 +02:00
Simon Wisselink 768acd96fa Add missing Smarty getErrorUnassigned/setErrorUnassigned methods
Fixes #979
2024-04-03 09:43:09 +02:00
Simon Wisselink baa83541d9 Merge branch 'support/5' 2024-03-28 11:22:51 +01:00
Simon Wisselink 6f054ecc2f Fix Smarty::assign() not returning when called with an array as first parameter. (#973)
Fixes #972
2024-03-28 11:22:29 +01:00
Simon Wisselink 4fec27ccc2 fix release tooling to support/5 branch 2024-03-27 23:05:16 +01:00
Simon Wisselink fea0d02d99 version bump 2024-03-27 23:03:40 +01:00
4 changed files with 19 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
- Fix Smarty::assign() not returning $this when called with an array as first parameter [#972](https://github.com/smarty-php/smarty/pull/972)
+1
View File
@@ -0,0 +1 @@
- Fixed missing Smarty getErrorUnassigned/setErrorUnassigned methods [#979](https://github.com/smarty-php/smarty/issues/979)
+1 -1
View File
@@ -15,7 +15,7 @@ php utilities/update-smarty-version-number.php $1
git add changelog CHANGELOG.md src/Smarty.php
git commit -m "version bump"
git checkout master
git checkout support/5
git pull
git merge --no-ff "release/$1"
git branch -d "release/$1"
+16 -1
View File
@@ -2227,6 +2227,22 @@ class Smarty extends \Smarty\TemplateBase {
}
/**
* Whether Smarty displays an error when using an unassigned variable
*/
public function getErrorUnassigned(): bool
{
return (bool) $this->error_unassigned;
}
/**
* Set if Smarty should display an error on using an unassigned variable
*/
public function setErrorUnassigned(bool $error_unassigned): void
{
$this->error_unassigned = $error_unassigned;
}
/**
* Sets if Smarty should check If-Modified-Since headers to determine cache validity.
* @param bool $cache_modified_check
* @return void
@@ -2236,4 +2252,3 @@ class Smarty extends \Smarty\TemplateBase {
}
}