Commit e8b674dc by Carsten Brandt

Do not unset class properties!

this will result in objects that do not have the property anymore :-)
parent 2f8f64cc
...@@ -199,6 +199,6 @@ class Item extends Object ...@@ -199,6 +199,6 @@ class Item extends Object
public function save() public function save()
{ {
$this->manager->saveItem($this, $this->_oldName); $this->manager->saveItem($this, $this->_oldName);
unset($this->_oldName); $this->_oldName = null;
} }
} }
...@@ -163,14 +163,12 @@ class View extends \yii\base\View ...@@ -163,14 +163,12 @@ class View extends \yii\base\View
self::PH_BODY_END => $this->renderBodyEndHtml(), self::PH_BODY_END => $this->renderBodyEndHtml(),
]); ]);
unset( $this->metaTags = null;
$this->metaTags, $this->linkTags = null;
$this->linkTags, $this->css = null;
$this->css, $this->cssFiles = null;
$this->cssFiles, $this->js = null;
$this->js, $this->jsFiles = null;
$this->jsFiles
);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment