diff --git a/core/modules/image/src/Controller/ImageStyleDownloadController.php b/core/modules/image/src/Controller/ImageStyleDownloadController.php index 1df6ef1d42..b6d42e3d85 100644 --- a/core/modules/image/src/Controller/ImageStyleDownloadController.php +++ b/core/modules/image/src/Controller/ImageStyleDownloadController.php @@ -216,10 +216,8 @@ public function deliver(Request $request, $scheme, ImageStyleInterface $image_st if ($success) { $image = $this->imageFactory->get($derivative_uri); $uri = $image->getSource(); - $headers += [ - 'Content-Type' => $image->getMimeType(), - 'Content-Length' => $image->getFileSize(), - ]; + $headers['Content-Type'] = $image->getMimeType(); + $headers['Content-Length'] = $image->getFileSize(); // \Drupal\Core\EventSubscriber\FinishResponseSubscriber::onRespond() // sets response as not cacheable if the Cache-Control header is not // already modified. When $is_public is TRUE, the following sets the