protected function filterValue($value) : string { $value = (string) $value; if (preg_match("/[^!#-#--:<-[]-~]/", $value)) { throw new InvalidValueException('Invalid cookie header value.'); } return Message\decode($value); }