if (!in_array($contentDisposition, $contentDispositionDirectives)) {
14
throw new \InvalidArgumentException(sprintf('Expected one of the following directives: "%s", but "%s" given.', implode('", "', $contentDispositionDirectives), $contentDisposition));