N°9875 - error msg typo

This commit is contained in:
odain
2026-08-19 15:27:49 +02:00
parent 4722551a16
commit fdc1ef40e6
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -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'],
];
}