fix php 8.1 type bug

This commit is contained in:
Dennis Eichhorn 2022-03-22 18:14:00 +01:00
parent 14ade88362
commit 468abbb4f0

View File

@ -133,7 +133,7 @@ class ZipArchive
if (!$this->usePclzip) {
$zip = new \ZipArchive();
$result = $zip->open($this->filename, $flags);
$result = $zip->open($this->filename, $flags ?? 0);
// Scrutizer will report the property numFiles does not exist
// See https://github.com/scrutinizer-ci/php-analyzer/issues/190