diff --git a/src/ParseTree/Base.php b/src/ParseTree/Base.php index 247271aa..e1140c15 100644 --- a/src/ParseTree/Base.php +++ b/src/ParseTree/Base.php @@ -42,12 +42,4 @@ abstract class Base */ abstract public function to_smarty_php(\Smarty\Parser\TemplateParser $parser); - /** - * Template data object destructor - */ - public function __destruct() - { - $this->data = null; - $this->subtrees = null; - } } diff --git a/src/UndefinedVariable.php b/src/UndefinedVariable.php index ca728bef..53f13f41 100644 --- a/src/UndefinedVariable.php +++ b/src/UndefinedVariable.php @@ -5,23 +5,9 @@ namespace Smarty; /** * class for undefined variable object * This class defines an object for undefined variable handling - * - - */ class UndefinedVariable extends Variable { - /** - * Returns null for not existing properties - * - * @param string $name - * - * @return null - */ - public function __get($name) { - return null; - } - /** * Always returns an empty string. * diff --git a/tests/UnitTests/CacheResourceTests/_shared/PHPunitplugins/cacheresource.apctest.php b/tests/UnitTests/CacheResourceTests/_shared/PHPunitplugins/cacheresource.apctest.php index 44696d32..38b061dc 100644 --- a/tests/UnitTests/CacheResourceTests/_shared/PHPunitplugins/cacheresource.apctest.php +++ b/tests/UnitTests/CacheResourceTests/_shared/PHPunitplugins/cacheresource.apctest.php @@ -30,13 +30,4 @@ class Smarty_CacheResource_Apctest extends Smarty_CacheResource_Apc return $t ? $t : null; } - public function __sleep() - { - return array(); - } - - public function __wakeup() - { - $this->__construct(); - } } diff --git a/tests/UnitTests/CacheResourceTests/_shared/PHPunitplugins/cacheresource.memcachetest.php b/tests/UnitTests/CacheResourceTests/_shared/PHPunitplugins/cacheresource.memcachetest.php index 7bf69928..77f9d5f9 100644 --- a/tests/UnitTests/CacheResourceTests/_shared/PHPunitplugins/cacheresource.memcachetest.php +++ b/tests/UnitTests/CacheResourceTests/_shared/PHPunitplugins/cacheresource.memcachetest.php @@ -29,13 +29,4 @@ class Smarty_CacheResource_Memcachetest extends Smarty_CacheResource_Memcache return $t ? $t : null; } - public function __sleep() - { - return array(); - } - - public function __wakeup() - { - $this->__construct(); - } }