#ifdef HAVE_METHOD_SUPPORTED
/** @return bool */
- public static function isCompressionMethodSupported(int $method, bool $enc): bool {}
+ public static function isCompressionMethodSupported(int $method, bool $enc = true): bool {}
/** @return bool */
- public static function isEncryptionMethodSupported(int $method, bool $enc): bool {}
+ public static function isEncryptionMethodSupported(int $method, bool $enc = true): bool {}
#endif
}
#endif
#if defined(HAVE_METHOD_SUPPORTED)
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_isCompressionMethodSupported, 0, 2, _IS_BOOL, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_isCompressionMethodSupported, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0)
- ZEND_ARG_TYPE_INFO(0, enc, _IS_BOOL, 0)
+ ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, enc, _IS_BOOL, 0, "true")
ZEND_END_ARG_INFO()
#endif