mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-02 09:24:28 +02:00
Add missing Smarty getErrorUnassigned/setErrorUnassigned methods
Fixes #979
This commit is contained in:
1
changelog/979.md
Normal file
1
changelog/979.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
- Fixed missing Smarty getErrorUnassigned/setErrorUnassigned methods [#979](https://github.com/smarty-php/smarty/issues/979)
|
@@ -2228,5 +2228,21 @@ class Smarty extends \Smarty\TemplateBase {
|
|||||||
return $template;
|
return $template;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user