/** * Move forward to next element * * @return void Any returned value is ignored. */ public function next() { if ($this->sendHeaders && !$this->headersSent) { $this->headersSent = true; return; } return parent::next(); }