Un-needed assignment. move `$this->parent = null` here