From a569c6f744a0522864da1b02f79bcf8165500a70 Mon Sep 17 00:00:00 2001 From: Daniel Metzner Date: Thu, 1 Aug 2024 17:29:38 +0200 Subject: [PATCH] Fix undefined $path variable warning --- src/Resource/FilePlugin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Resource/FilePlugin.php b/src/Resource/FilePlugin.php index 7fd8667d3..2af01528c 100644 --- a/src/Resource/FilePlugin.php +++ b/src/Resource/FilePlugin.php @@ -56,6 +56,7 @@ public function populate(Source $source, Template $_template = null) { * @param Source $source source object */ public function populateTimestamp(Source $source) { + $path = false; if (!$source->exists && $path = $this->getFilePath($source->name, $source->getSmarty(), $source->isConfig)) { $source->timestamp = $source->exists = is_file($path); }