Touch fix for PHP 8

This commit is contained in:
Matias Griese
2022-02-26 19:20:13 +02:00
parent bac5c756fe
commit b93240e1f5

View File

@@ -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);
}