mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 00:47:13 +02:00
Touch fix for PHP 8
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user