From 643f7dd80707bef61fa661ca6247d344fc46f4bc Mon Sep 17 00:00:00 2001 From: Leonardo Lara Rodrigues Date: Sat, 21 Dec 2024 21:01:21 -0300 Subject: [PATCH] Avoid warnings in PHP 8.4 (#212) --- scripts/translation/lib/QaFileInfo.php | 2 +- scripts/translation/lib/RevcheckFileItem.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/translation/lib/QaFileInfo.php b/scripts/translation/lib/QaFileInfo.php index 2b8eb3ded..c45130762 100644 --- a/scripts/translation/lib/QaFileInfo.php +++ b/scripts/translation/lib/QaFileInfo.php @@ -54,7 +54,7 @@ public static function cacheSave( array $itens ) foreach( $itens as $item ) { $line = array( $item->sourceHash , $item->targetHash , $item->sourceDir , $item->targetDir , $item->file , $item->days ); - fputcsv( $fp , $line ); + fputcsv( $fp , $line, escape: "" ); } fclose($fp); } diff --git a/scripts/translation/lib/RevcheckFileItem.php b/scripts/translation/lib/RevcheckFileItem.php index 0e79b9e17..1e8541226 100644 --- a/scripts/translation/lib/RevcheckFileItem.php +++ b/scripts/translation/lib/RevcheckFileItem.php @@ -62,7 +62,7 @@ public function addGitLogData( string $hash , string $date , bool $skip ) : void } if ( $skip ) - $this->diffHash = $hash; + $this->hashDiff = $hash; else $this->hashStop = true; }