/** * {@inheritdoc} */ public function addFile($name, $file) { if ($this->hasRawDatas()) { throw HttpAdapterException::doesNotSupportRawDatasAndFiles(); } $this->files[$name] = $this->hasFile($name) ? array_merge((array) $this->files[$name], (array) $file) : $file; }