diff --git a/system/src/Grav/Framework/File/AbstractFile.php b/system/src/Grav/Framework/File/AbstractFile.php index c12d46023..3ae70632b 100644 --- a/system/src/Grav/Framework/File/AbstractFile.php +++ b/system/src/Grav/Framework/File/AbstractFile.php @@ -345,6 +345,10 @@ class AbstractFile implements FileInterface */ public function touch(int $mtime = null): bool { + if (null === $mtime) { + return @touch($this->filepath); + } + return @touch($this->filepath, $mtime); }