mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-02-16 04:08:43 +00:00
fix php 8.1 type bug
This commit is contained in:
parent
14ade88362
commit
468abbb4f0
|
|
@ -133,7 +133,7 @@ class ZipArchive
|
||||||
|
|
||||||
if (!$this->usePclzip) {
|
if (!$this->usePclzip) {
|
||||||
$zip = new \ZipArchive();
|
$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
|
// Scrutizer will report the property numFiles does not exist
|
||||||
// See https://github.com/scrutinizer-ci/php-analyzer/issues/190
|
// See https://github.com/scrutinizer-ci/php-analyzer/issues/190
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user