From 46ff8aacd20087b7cd412b449a6e180a9fb7784d Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Fri, 21 Oct 2022 11:28:56 +0100 Subject: [PATCH] [UTIL][TemporaryFile] Silence warnings in critical section inside TemporaryFile --- src/Util/TemporaryFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Util/TemporaryFile.php b/src/Util/TemporaryFile.php index ea4152187c..43bef6bf07 100644 --- a/src/Util/TemporaryFile.php +++ b/src/Util/TemporaryFile.php @@ -216,8 +216,8 @@ class TemporaryFile extends SplFileInfo }, ); - $renamed = rename($this->getPathname(), $destpath); - $chmoded = chmod($destpath, $filemode); + $renamed = @rename($this->getPathname(), $destpath); + $chmoded = @chmod($destpath, $filemode); restore_error_handler(); if (!$renamed || !$chmoded) { if (!$existed && file_exists($destpath)) {