diff --git a/Classes/Service/AssetService.php b/Classes/Service/AssetService.php index 53d2b40cc..e00e8f820 100644 --- a/Classes/Service/AssetService.php +++ b/Classes/Service/AssetService.php @@ -573,7 +573,7 @@ protected function copyReferencedFilesAndReplacePaths( if (false === strpos($match, ':') && !preg_match('/url\\s*\\(/i', $match)) { $checksum = md5($originalDirectory . $match); if (0 < preg_match('/([^\?#]+)(.+)?/', $match, $items)) { - $path = $items[1]; + $path = $items[1] ?? ''; $suffix = $items[2] ?? ''; } else { $path = $match; diff --git a/Classes/View/UncacheTemplateView.php b/Classes/View/UncacheTemplateView.php index 1858911a0..eefeb3066 100644 --- a/Classes/View/UncacheTemplateView.php +++ b/Classes/View/UncacheTemplateView.php @@ -118,6 +118,7 @@ protected function renderPartialUncached( 'parsedTemplate' => null, 'renderingContext' => $renderingContext, ]; + /** @var string $rendered */ $rendered = $this->renderPartial($partial, $section, $arguments); array_pop($this->renderingStack); return $rendered;