From fdc1ef40e64ea9284d9bc94805c57635f18079cf Mon Sep 17 00:00:00 2001 From: odain Date: Wed, 19 Aug 2026 15:27:49 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B09875=20-=20error=20msg=20typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/utils.inc.php | 4 ++-- tests/php-unit-tests/unitary-tests/application/utilsTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/utils.inc.php b/application/utils.inc.php index 821bfaf6fe..0b93b82334 100644 --- a/application/utils.inc.php +++ b/application/utils.inc.php @@ -3270,10 +3270,10 @@ TXT if (true !== $code) { //ZipArchive::ZIP_ER_NOZIP : 19 if ($code === 19) { - throw new \Exception(sprintf('Cannot to open zip file due to inconsistent or empty content')); + throw new \Exception(sprintf('Cannot open zip file due to inconsistent or empty content')); } - throw new \Exception(sprintf('Cannot to open zip file due to error code %s', $code)); + throw new \Exception(sprintf('Cannot open zip file due to error code %s', $code)); } return $oZip; } diff --git a/tests/php-unit-tests/unitary-tests/application/utilsTest.php b/tests/php-unit-tests/unitary-tests/application/utilsTest.php index 5e4e1940fa..b0cf9a6f21 100644 --- a/tests/php-unit-tests/unitary-tests/application/utilsTest.php +++ b/tests/php-unit-tests/unitary-tests/application/utilsTest.php @@ -1040,7 +1040,7 @@ INI; public static function ZipArchiveOpen_EmptyExistingFileProvider() { return [ - "RDONLY" => [\ZipArchive::RDONLY, 'Cannot to open zip file due to inconsistent or empty content'], + "RDONLY" => [\ZipArchive::RDONLY, 'Cannot open zip file due to inconsistent or empty content'], "OVERWRITE" => [\ZipArchive::OVERWRITE], ]; } @@ -1068,7 +1068,7 @@ INI; { return [ "CREATE" => [\ZipArchive::CREATE], - "null" => [null, 'Cannot to open zip file due to error code 9'], + "null" => [null, 'Cannot open zip file due to error code 9'], ]; }