mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
Do not unset class properties!
this will result in objects that do not have the property anymore :-)
This commit is contained in:
@ -199,6 +199,6 @@ class Item extends Object
|
||||
public function save()
|
||||
{
|
||||
$this->manager->saveItem($this, $this->_oldName);
|
||||
unset($this->_oldName);
|
||||
$this->_oldName = null;
|
||||
}
|
||||
}
|
||||
|
||||
@ -163,14 +163,12 @@ class View extends \yii\base\View
|
||||
self::PH_BODY_END => $this->renderBodyEndHtml(),
|
||||
]);
|
||||
|
||||
unset(
|
||||
$this->metaTags,
|
||||
$this->linkTags,
|
||||
$this->css,
|
||||
$this->cssFiles,
|
||||
$this->js,
|
||||
$this->jsFiles
|
||||
);
|
||||
$this->metaTags = null;
|
||||
$this->linkTags = null;
|
||||
$this->css = null;
|
||||
$this->cssFiles = null;
|
||||
$this->js = null;
|
||||
$this->jsFiles = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user