intelephense
1.14.41.16.1
lib/stub/zlib/zlib.phplib/stub/zlib/zlib.php+7−7
Index: package/lib/stub/zlib/zlib.php
===================================================================
--- package/lib/stub/zlib/zlib.php
+++ package/lib/stub/zlib/zlib.php
@@ -17,9 +17,9 @@
* want to search for the file in the include_path too.
* </p>
* @return int|false the number of (uncompressed) bytes read from the file, or FALSE on error
*/
-function readgzfile(string $filename, int $use_include_path = 0): int|false {}
+function readgzfile(string $filename, #[LanguageLevelTypeAware(['8.5' => 'bool'], default: 'int')] $use_include_path = false): int|false {}
/**
* Rewind the position of a gz-file pointer
* @link https://php.net/manual/en/function.gzrewind.php
@@ -139,9 +139,9 @@
* </p>
* <p>
* If the open fails, the function returns <b>FALSE</b>.
*/
-function gzopen(string $filename, string $mode, int $use_include_path = 0) {}
+function gzopen(string $filename, string $mode, #[LanguageLevelTypeAware(['8.5' => 'bool'], default: 'int')] $use_include_path = false) {}
/**
* Output all remaining data on a gz-file pointer
* @link https://php.net/manual/en/function.gzpassthru.php
@@ -237,9 +237,9 @@
* want to search for the file in the include_path too.
* </p>
* @return array|false An array containing the file, one line per cell.
*/
-function gzfile(string $filename, int $use_include_path = 0): array|false {}
+function gzfile(string $filename, #[LanguageLevelTypeAware(['8.5' => 'bool'], default: 'int')] $use_include_path = false): array|false {}
/**
* Compress a string
* @link https://php.net/manual/en/function.gzcompress.php
@@ -414,9 +414,9 @@
* @link https://php.net/manual/en/function.deflate-init.php
* @param int $encoding <p>
* One of the <b>ZLIB_ENCODING_*</b> constants.
* </p>
- * @param array $options <p>
+ * @param array|object $options <p>
* An associative array which may contain the following elements:
* <b>level</b>The compression level in range -1..9; defaults to -1.
* <b>memory</b>The compression memory level in range 1..9; defaults to 8.
* <b>window</b>The zlib window size (logarithmic) in range 8..15; defaults
@@ -431,9 +431,9 @@
* @since 7.0
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "DeflateContext|false"], default: "resource|false")]
-function deflate_init(int $encoding, array $options = []) {}
+function deflate_init(int $encoding, #[LanguageLevelTypeAware(["8.3" => "array|object"], default: "array")] $options = []) {}
/**
* Incrementally deflate data
* @link https://php.net/manual/en/function.deflate-add.php
@@ -462,9 +462,9 @@
* @link https://php.net/manual/en/function.inflate-init.php
* @param int $encoding <p>
* One of the ZLIB_ENCODING_* constants.
* </p>
- * @param array $options [optional] <p>
+ * @param array|object $options [optional] <p>
* An associative array which may contain the following elements:
* <b>level</b>The compression level in range -1..9; defaults to -1.
* <b>memory</b>The compression memory level in range 1..9; defaults to 8.
* <b>window</b>The zlib window size (logarithmic) in range 8..15; defaults
@@ -479,9 +479,9 @@
* @since 7.0
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "InflateContext|false"], default: "resource|false")]
-function inflate_init(int $encoding, array $options = []) {}
+function inflate_init(int $encoding, #[LanguageLevelTypeAware(["8.3" => "array|object"], default: "array")] $options = []) {}
/**
* Incrementally inflate encoded data
* @link https://php.net/manual/en/function.inflate-add.php