diff --git a/Neos.FluidAdaptor/Classes/View/TemplatePaths.php b/Neos.FluidAdaptor/Classes/View/TemplatePaths.php index b09317ec54..fb001bd3c1 100644 --- a/Neos.FluidAdaptor/Classes/View/TemplatePaths.php +++ b/Neos.FluidAdaptor/Classes/View/TemplatePaths.php @@ -539,13 +539,14 @@ public function setOption($optionName, $value) * ____ * The SH1 hash is a checksum that is based on the file path and last modification date * - * @param string $pathAndFilename + * @param string|null $pathAndFilename * @param string $prefix * @return string * @throws InvalidTemplateResourceException */ protected function createIdentifierForFile($pathAndFilename, $prefix) { + $pathAndFilename = (string)$pathAndFilename; $templateModifiedTimestamp = 0; $isStandardInput = $pathAndFilename === 'php://stdin'; $isFile = is_file($pathAndFilename);