/** * {@inheritdoc} * * @throws \LogicException */ public function clearCookie(Cookie $cookie) { if ($this->headerSent($file, $line)) { throw new \LogicException(sprintf("Headers is already sent in '%s:%s'", $file, $line)); } return parent::clearCookie($cookie); }