]> granicus.if.org Git - php/commitdiff
Replace @param annotations with type declarations
authorChristoph M. Becker <cmbecker69@gmx.de>
Sun, 16 Feb 2020 18:20:54 +0000 (19:20 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 16 Feb 2020 22:43:38 +0000 (23:43 +0100)
33 files changed:
ext/dba/dba.stub.php
ext/dba/dba_arginfo.h
ext/gmp/gmp.stub.php
ext/gmp/gmp_arginfo.h
ext/intl/calendar/calendar.stub.php
ext/intl/calendar/calendar_arginfo.h
ext/intl/formatter/formatter.stub.php
ext/intl/formatter/formatter_arginfo.h
ext/intl/resourcebundle/resourcebundle.stub.php
ext/intl/resourcebundle/resourcebundle_arginfo.h
ext/ldap/ldap.stub.php
ext/ldap/ldap_arginfo.h
ext/mbstring/mbstring.stub.php
ext/mbstring/mbstring_arginfo.h
ext/odbc/odbc.stub.php
ext/odbc/odbc_arginfo.h
ext/openssl/openssl.stub.php
ext/openssl/openssl_arginfo.h
ext/pcre/php_pcre.stub.php
ext/pcre/php_pcre_arginfo.h
ext/pdo/pdo.stub.php
ext/pdo/pdo_arginfo.h
ext/reflection/php_reflection.stub.php
ext/reflection/php_reflection_arginfo.h
ext/reflection/tests/ReflectionClass_toString_001.phpt
ext/reflection/tests/ReflectionMethod_basic2.phpt
ext/snmp/snmp.stub.php
ext/snmp/snmp_arginfo.h
ext/standard/basic_functions.stub.php
ext/standard/basic_functions_arginfo.h
ext/tidy/tidy.stub.php
ext/tidy/tidy_arginfo.h
sapi/cli/tests/006.phpt

index 96ce6d573a69e3f6fad55880149312913ec2694d..4c476a984bbded62764f5827168d2425b3b50a1c 100644 (file)
@@ -10,17 +10,15 @@ function dba_open($path, $mode, $handlername = UNKNOWN, ...$handler_parameters)
 function dba_close($handle): void {}
 
 /**
- * @param string|array $key
  * @param resource $handle
  */
-function dba_exists($key, $handle): bool {}
+function dba_exists(string|array $key, $handle): bool {}
 
 /**
- * @param string|array $key
  * @param int|resource $skip actually this parameter is optional, not $handle
  * @param resource $handle
  */
-function dba_fetch($key, $skip, $handle = UNKOWN): string|false {}
+function dba_fetch(string|array $key, $skip, $handle = UNKOWN): string|false {}
 
 function dba_key_split(string $key): array|false {}
 
@@ -31,22 +29,19 @@ function dba_firstkey($handle): string|false {}
 function dba_nextkey($handle): string|false {}
 
 /**
- * @param string|array $key
  * @param resource $handle
  */
-function dba_delete($key, $handle): bool {}
+function dba_delete(string|array $key, $handle): bool {}
 
 /**
- * @param string|array $key
  * @param resource $handle
  */
-function dba_insert($key, string $value, $handle): bool {}
+function dba_insert(string|array $key, string $value, $handle): bool {}
 
 /**
- * @param string|array $key
  * @param resource $handle
  */
-function dba_replace($key, string $value, $handle): bool {}
+function dba_replace(string|array $key, string $value, $handle): bool {}
 
 /** @param resource $handle */
 function dba_optimize($handle): bool {}
index 32e925fb6a12b49f279d6887df3e679aeda5c28a..0b14c33a575cf9ea14dec2bb97fbd898d28e009e 100644 (file)
@@ -14,12 +14,12 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dba_close, 0, 1, IS_VOID, 0)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dba_exists, 0, 2, _IS_BOOL, 0)
-       ZEND_ARG_INFO(0, key)
+       ZEND_ARG_TYPE_MASK(0, key, MAY_BE_STRING|MAY_BE_ARRAY)
        ZEND_ARG_INFO(0, handle)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dba_fetch, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
-       ZEND_ARG_INFO(0, key)
+       ZEND_ARG_TYPE_MASK(0, key, MAY_BE_STRING|MAY_BE_ARRAY)
        ZEND_ARG_INFO(0, skip)
        ZEND_ARG_INFO(0, handle)
 ZEND_END_ARG_INFO()
@@ -37,7 +37,7 @@ ZEND_END_ARG_INFO()
 #define arginfo_dba_delete arginfo_dba_exists
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dba_insert, 0, 3, _IS_BOOL, 0)
-       ZEND_ARG_INFO(0, key)
+       ZEND_ARG_TYPE_MASK(0, key, MAY_BE_STRING|MAY_BE_ARRAY)
        ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
        ZEND_ARG_INFO(0, handle)
 ZEND_END_ARG_INFO()
index 7f576ca0c1043fc455ee2ddd9138410eaf3aba16..2fedff94583cbfa367ab6c08fa97d0dc12e5d32a 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 
-/** @param int|bool|string $number */
-function gmp_init($number, int $base = 0): GMP|false {}
+function gmp_init(int|bool|string $number, int $base = 0): GMP|false {}
 
 function gmp_import(string $data, int $word_size = 1, int $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): GMP|false {}
 
index 714bd046e26a94399ef1cd0ad72ad673d579d2d4..448b6b303a967ead69bb28a928838227d22c140f 100644 (file)
@@ -1,7 +1,7 @@
 /* This is a generated file, edit the .stub.php file instead. */
 
 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_gmp_init, 0, 1, GMP, MAY_BE_FALSE)
-       ZEND_ARG_INFO(0, number)
+       ZEND_ARG_TYPE_MASK(0, number, MAY_BE_LONG|MAY_BE_BOOL|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, base, IS_LONG, 0)
 ZEND_END_ARG_INFO()
 
index 267035e268cb29b267d210719b6715fb12e2fe26..f057d579b662ef21425df5ab05de97b0c4ccefa4 100644 (file)
@@ -116,10 +116,9 @@ class IntlCalendar
     public function isWeekend(?float $date = null) {}
 
     /**
-     * @param int|bool $amountOrUpOrDown
      * @return bool
      */
-    public function roll(int $field, $amountOrUpOrDown) {}
+    public function roll(int $field, int|bool $amountOrUpOrDown) {}
 
     /** @return bool */
     public function isSet(int $field) {}
@@ -198,8 +197,7 @@ function intlcal_before(IntlCalendar $calendarObject, IntlCalendar $calendar): b
 
 function intlcal_set(IntlCalendar $calendar, int $year, int $month, int $dayOfMonth = UNKNOWN, $hour = UNKNOWN, int $minute = UNKNOWN, int $second = UNKNOWN): bool {}
 
-/** @param int|bool $amountOrUpOrDown */
-function intlcal_roll(IntlCalendar $calendar, int $field, $amountOrUpOrDown): bool {}
+function intlcal_roll(IntlCalendar $calendar, int $field, int|bool $amountOrUpOrDown): bool {}
 
 function intlcal_clear(IntlCalendar $calendar, ?int $field = null): bool {}
 
index efe89030ec718c32298df485c0a090602a0021c8..47bc248ff818260f522668b32680159d568e029c 100644 (file)
@@ -105,7 +105,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlCalendar_roll, 0, 0, 2)
        ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
-       ZEND_ARG_INFO(0, amountOrUpOrDown)
+       ZEND_ARG_TYPE_MASK(0, amountOrUpOrDown, MAY_BE_LONG|MAY_BE_BOOL)
 ZEND_END_ARG_INFO()
 
 #define arginfo_class_IntlCalendar_isSet arginfo_class_IntlCalendar_get
@@ -217,7 +217,7 @@ ZEND_END_ARG_INFO()
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_intlcal_roll, 0, 3, _IS_BOOL, 0)
        ZEND_ARG_OBJ_INFO(0, calendar, IntlCalendar, 0)
        ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
-       ZEND_ARG_INFO(0, amountOrUpOrDown)
+       ZEND_ARG_TYPE_MASK(0, amountOrUpOrDown, MAY_BE_LONG|MAY_BE_BOOL)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_intlcal_clear, 0, 1, _IS_BOOL, 0)
index 2edc28d6fd4c4d2eacd30636da811689843da229..b210ebe888c56cf5bf411caf48098736af3c0b1d 100644 (file)
@@ -20,10 +20,9 @@ class NumberFormatter
     public function parseCurrency(string $value, &$currency, &$position = null) {}
 
     /**
-     * @param int|float $value
      * @return bool
      */
-    public function setAttribute(int $attr, $value) {}
+    public function setAttribute(int $attr, int|float $value) {}
 
     /** @return int|float|false */
     public function getAttribute(int $attr) {}
@@ -66,8 +65,7 @@ function numfmt_format_currency(NumberFormatter $fmt, float $value, string $curr
 
 function numfmt_parse_currency(NumberFormatter $fmt, string $value, &$currency, &$position = null): float|false {}
 
-/** @param int|float $value */
-function numfmt_set_attribute(NumberFormatter $fmt, int $attr, $value): bool {}
+function numfmt_set_attribute(NumberFormatter $fmt, int $attr, int|float $value): bool {}
 
 function numfmt_get_attribute(NumberFormatter $fmt, int $attr): int|double|false {}
 
index eced76d82b4287780f76322f7bf8a495b1127932..26de20d749f8896a54d256258f958abe490df70f 100644 (file)
@@ -32,7 +32,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_NumberFormatter_setAttribute, 0, 0, 2)
        ZEND_ARG_TYPE_INFO(0, attr, IS_LONG, 0)
-       ZEND_ARG_INFO(0, value)
+       ZEND_ARG_TYPE_MASK(0, value, MAY_BE_LONG|MAY_BE_DOUBLE)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_NumberFormatter_getAttribute, 0, 0, 1)
@@ -100,7 +100,7 @@ ZEND_END_ARG_INFO()
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_numfmt_set_attribute, 0, 3, _IS_BOOL, 0)
        ZEND_ARG_OBJ_INFO(0, fmt, NumberFormatter, 0)
        ZEND_ARG_TYPE_INFO(0, attr, IS_LONG, 0)
-       ZEND_ARG_INFO(0, value)
+       ZEND_ARG_TYPE_MASK(0, value, MAY_BE_LONG|MAY_BE_DOUBLE)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_numfmt_get_attribute, 0, 2, double, MAY_BE_LONG|MAY_BE_FALSE)
index 14f10fea4bf9d9dd614eb12e43a7da41fcb595ea..e1dd22b6cba471c54342f183683489973b4241cd 100644 (file)
@@ -8,10 +8,9 @@ class ResourceBundle implements Traversable
     public static function create(?string $locale, ?string $bundlename, bool $fallback = true) {}
 
     /**
-     * @param string|int $index
      * @return mixed
      */
-    public function get($index, bool $fallback = true) {}
+    public function get(string|int $index, bool $fallback = true) {}
 
     /** @return int */
     public function count() {}
@@ -29,10 +28,9 @@ class ResourceBundle implements Traversable
 function resourcebundle_create(?string $locale, ?string $bundlename, bool $fallback = true): ?ResourceBundle {}
 
 /**
- * @param string|int $index
  * @return mixed
  */
-function resourcebundle_get(ResourceBundle $bundle, $index) {}
+function resourcebundle_get(ResourceBundle $bundle, string|int $index) {}
 
 function resourcebundle_count(ResourceBundle $bundle): int {}
 
index 855b8b548c1957480ba3727772df2bfe8dc03db8..627e7150a0d83350e84e8d8514ecdf078490697b 100644 (file)
@@ -9,7 +9,7 @@ ZEND_END_ARG_INFO()
 #define arginfo_class_ResourceBundle_create arginfo_class_ResourceBundle___construct
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ResourceBundle_get, 0, 0, 1)
-       ZEND_ARG_INFO(0, index)
+       ZEND_ARG_TYPE_MASK(0, index, MAY_BE_STRING|MAY_BE_LONG)
        ZEND_ARG_TYPE_INFO(0, fallback, _IS_BOOL, 0)
 ZEND_END_ARG_INFO()
 
@@ -32,7 +32,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_resourcebundle_get, 0, 0, 2)
        ZEND_ARG_OBJ_INFO(0, bundle, ResourceBundle, 0)
-       ZEND_ARG_INFO(0, index)
+       ZEND_ARG_TYPE_MASK(0, index, MAY_BE_STRING|MAY_BE_LONG)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_resourcebundle_count, 0, 1, IS_LONG, 0)
index e8a2fc8a32a026fd84494317771bc4ffdcf77ad9..ac0f99392046ec02ef80da378b8033456294f5ce 100644 (file)
@@ -40,27 +40,21 @@ function ldap_sasl_bind($link, string $binddn = UNKNOWN, string $password = UNKN
 
 /**
  * @param resource|array $link_identifier
- * @param string|array $base_dn
- * @param string|array $filter
  * @return resource|false
  */
-function ldap_read($link_identifier, $base_dn, $filter, array $attributes = [], int $attrsonly = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $servercontrols = []) {}
+function ldap_read($link_identifier, string|array $base_dn, string|array $filter, array $attributes = [], int $attrsonly = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $servercontrols = []) {}
 
 /**
  * @param resource|array $link_identifier
- * @param string|array $base_dn
- * @param string|array $filter
  * @return resource|false
  */
-function ldap_list($link_identifier, $base_dn, $filter, array $attributes = [], int $attrsonly = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $servercontrols = []) {}
+function ldap_list($link_identifier, string|array $base_dn, string|array $filter, array $attributes = [], int $attrsonly = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $servercontrols = []) {}
 
 /**
  * @param resource|array $link_identifier
- * @param string|array $base_dn
- * @param string|array $filter
  * @return resource|false
  */
-function ldap_search($link_identifier, $base_dn, $filter, array $attributes = [], int $attrsonly = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $servercontrols = []) {}
+function ldap_search($link_identifier, string|array $base_dn, string|array $filter, array $attributes = [], int $attrsonly = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, array $servercontrols = []) {}
 
 /**
  * @param resource $link_identifier
index c7e5429bdf6bc25234f3e3c632c1411f8fd110d6..e75cb0d5180e6240046f47be3f0217a45b179cd4 100644 (file)
@@ -51,8 +51,8 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_read, 0, 0, 3)
        ZEND_ARG_INFO(0, link_identifier)
-       ZEND_ARG_INFO(0, base_dn)
-       ZEND_ARG_INFO(0, filter)
+       ZEND_ARG_TYPE_MASK(0, base_dn, MAY_BE_STRING|MAY_BE_ARRAY)
+       ZEND_ARG_TYPE_MASK(0, filter, MAY_BE_STRING|MAY_BE_ARRAY)
        ZEND_ARG_TYPE_INFO(0, attributes, IS_ARRAY, 0)
        ZEND_ARG_TYPE_INFO(0, attrsonly, IS_LONG, 0)
        ZEND_ARG_TYPE_INFO(0, sizelimit, IS_LONG, 0)
index afe9f50e88e5786d228805c175e85f6ed0b736aa..0c5f631a969b42f902a62115e4eb520c4185c8cf 100644 (file)
@@ -48,8 +48,7 @@ function mb_strwidth(string $str, string $encoding = UNKNOWN): int|false {}
 
 function mb_strimwidth(string $str, int $start, int $width, string $trimmarker = UNKNOWN, string $encoding = UNKNOWN): string|false {}
 
-/** @param array|string $str */
-function mb_convert_encoding($str, string $to, $from = UNKNOWN): array|string|false {}
+function mb_convert_encoding(array|string $str, string $to, $from = UNKNOWN): array|string|false {}
 
 function mb_convert_case(string $sourcestring, int $mode, ?string $encoding = null): string|false {}
 
@@ -70,8 +69,7 @@ function mb_decode_mimeheader(string $string): string|false {}
 
 function mb_convert_kana(string $str, string $option = UNKNOWN, string $encoding = UNKNOWN): string|false {}
 
-/** @param array|string $from */
-function mb_convert_variables(string $to, $from, &$var, &...$vars): string|false {}
+function mb_convert_variables(string $to, array|string $from, &$var, &...$vars): string|false {}
 
 function mb_encode_numericentity(string $string, array $convmap, string $encoding = UNKNOWN, bool $is_hex = false): string|false {}
 
index 0fd3034bd9cda16f01958d54354daed7963ef94e..4bb25311730fc9f3da47c2aa2e4c62bab7b93920 100644 (file)
@@ -104,7 +104,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_strimwidth, 0, 3, MAY_BE_STRI
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_convert_encoding, 0, 2, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_FALSE)
-       ZEND_ARG_INFO(0, str)
+       ZEND_ARG_TYPE_MASK(0, str, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, to, IS_STRING, 0)
        ZEND_ARG_INFO(0, from)
 ZEND_END_ARG_INFO()
@@ -155,7 +155,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_convert_variables, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
        ZEND_ARG_TYPE_INFO(0, to, IS_STRING, 0)
-       ZEND_ARG_INFO(0, from)
+       ZEND_ARG_TYPE_MASK(0, from, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_INFO(1, var)
        ZEND_ARG_VARIADIC_INFO(1, vars)
 ZEND_END_ARG_INFO()
index 9eafe46ae503641af76d6750c1d2c5cc9d742107..814b8fba714f94654f8f884800d2ff4cde6b76ee 100644 (file)
@@ -53,9 +53,8 @@ function odbc_fetch_row($result_id, int $row_number = UNKNOWN): bool {}
 
 /**
  * @param resource $result_id
- * @param string|int $field
  */
-function odbc_result($result_id, $field): string|bool|null {}
+function odbc_result($result_id, string|int $field): string|bool|null {}
 
 /** @param resource $result_id */
 function odbc_result_all($result_id, string $format = ''): int|false {}
index 41f00cb2a01c67282d268cbce7eaea18d4a18d37..1a462ee0dc30d0a32c97069ba0c2b726dc4e0c85 100644 (file)
@@ -69,7 +69,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_result, 0, 2, MAY_BE_STRING|MAY_BE_BOOL|MAY_BE_NULL)
        ZEND_ARG_INFO(0, result_id)
-       ZEND_ARG_INFO(0, field)
+       ZEND_ARG_TYPE_MASK(0, field, MAY_BE_STRING|MAY_BE_LONG)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_result_all, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
index e75f79c906e0947df418dfc35705e193ff2d3f12..d69ccd530621c4cf42635a75b47c909332c19272 100644 (file)
@@ -123,15 +123,13 @@ function openssl_error_string(): string|false {}
 
 /**
  * @param resource|string|array $key
- * @param int|string $method
  */
-function openssl_sign(string $data, &$signature, $key, $method = OPENSSL_ALGO_SHA1): bool {}
+function openssl_sign(string $data, &$signature, $key, int|string $method = OPENSSL_ALGO_SHA1): bool {}
 
 /**
  * @param resource|string|array $key
- * @param int|string $method
  */
-function openssl_verify(string $data, string $signature, $key, $method = OPENSSL_ALGO_SHA1): int|false {}
+function openssl_verify(string $data, string $signature, $key, int|string $method = OPENSSL_ALGO_SHA1): int|false {}
 
 function openssl_seal(string $data, &$sealdata, &$ekeys, array $pubkeys, string $method = UNKNOWN, &$iv = UNKNOWN): int|false {}
 
index 9f8835ec13c23c69c99356505bf1d0af9a46a6c4..6b6736329ae12c880292e13aca4994a4564dceea 100644 (file)
@@ -210,14 +210,14 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_sign, 0, 3, _IS_BOOL, 0)
        ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
        ZEND_ARG_INFO(1, signature)
        ZEND_ARG_INFO(0, key)
-       ZEND_ARG_INFO(0, method)
+       ZEND_ARG_TYPE_MASK(0, method, MAY_BE_LONG|MAY_BE_STRING)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_verify, 0, 3, MAY_BE_LONG|MAY_BE_FALSE)
        ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, signature, IS_STRING, 0)
        ZEND_ARG_INFO(0, key)
-       ZEND_ARG_INFO(0, method)
+       ZEND_ARG_TYPE_MASK(0, method, MAY_BE_LONG|MAY_BE_STRING)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_openssl_seal, 0, 4, MAY_BE_LONG|MAY_BE_FALSE)
index 397ab22159aa49735583dc2aaceddfa718b37fa2..01399f0fbc1bf08ce876c536614aac36a82068a9 100644 (file)
@@ -4,30 +4,16 @@ function preg_match(string $pattern, string $subject, &$subpatterns = null, int
 
 function preg_match_all(string $pattern, string $subject, &$subpatterns = null, int $flags = 0, int $offset = 0): int|false|null {}
 
-/**
- * @param string|array $regex
- * @param string|array $replace
- * @param string|array $subject
- */
-function preg_replace($regex, $replace, $subject, int $limit = -1, &$count = null): string|array|null {}
+function preg_replace(string|array $regex, string|array $replace, string|array $subject, int $limit = -1, &$count = null): string|array|null {}
 
-/**
- * @param string|array $regex
- * @param string|array $replace
- * @param string|array $subject
- */
-function preg_filter($regex, $replace, $subject, int $limit = -1, &$count = null): string|array|null {}
+function preg_filter(string|array $regex, string|array $replace, string|array $subject, int $limit = -1, &$count = null): string|array|null {}
 
 /**
- * @param string|array $regex
- * @param string|array $subject
- *
  * TODO: $callback should be `callable`
  */
-function preg_replace_callback($regex, $callback, $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
+function preg_replace_callback(string|array $regex, $callback, string|array $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
 
-/** @param string|array $subject */
-function preg_replace_callback_array(array $pattern, $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
+function preg_replace_callback_array(array $pattern, string|array $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
 
 function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false {}
 
index 4c7308baabcc7b9fcd04a47b53fd219f41a0ec6d..2abe7c8dea12ceedbf4662819888214d3cffafd2 100644 (file)
@@ -17,9 +17,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_preg_match_all, 0, 2, MAY_BE_LON
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_preg_replace, 0, 3, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_NULL)
-       ZEND_ARG_INFO(0, regex)
-       ZEND_ARG_INFO(0, replace)
-       ZEND_ARG_INFO(0, subject)
+       ZEND_ARG_TYPE_MASK(0, regex, MAY_BE_STRING|MAY_BE_ARRAY)
+       ZEND_ARG_TYPE_MASK(0, replace, MAY_BE_STRING|MAY_BE_ARRAY)
+       ZEND_ARG_TYPE_MASK(0, subject, MAY_BE_STRING|MAY_BE_ARRAY)
        ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0)
        ZEND_ARG_INFO(1, count)
 ZEND_END_ARG_INFO()
@@ -27,9 +27,9 @@ ZEND_END_ARG_INFO()
 #define arginfo_preg_filter arginfo_preg_replace
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_preg_replace_callback, 0, 3, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_NULL)
-       ZEND_ARG_INFO(0, regex)
+       ZEND_ARG_TYPE_MASK(0, regex, MAY_BE_STRING|MAY_BE_ARRAY)
        ZEND_ARG_INFO(0, callback)
-       ZEND_ARG_INFO(0, subject)
+       ZEND_ARG_TYPE_MASK(0, subject, MAY_BE_STRING|MAY_BE_ARRAY)
        ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0)
        ZEND_ARG_INFO(1, count)
        ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
@@ -37,7 +37,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_preg_replace_callback_array, 0, 2, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_NULL)
        ZEND_ARG_TYPE_INFO(0, pattern, IS_ARRAY, 0)
-       ZEND_ARG_INFO(0, subject)
+       ZEND_ARG_TYPE_MASK(0, subject, MAY_BE_STRING|MAY_BE_ARRAY)
        ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0)
        ZEND_ARG_INFO(1, count)
        ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
index 13969edb579ecfec3a84ded42f9704ecdb51e815..190710c4edc8a0b0db6fe3dc391a01dec0a92ba0 100644 (file)
@@ -71,11 +71,10 @@ class PDOStatement implements Traversable {
     public function bindParam(int|string $parameter, &$param, int $type = PDO::PARAM_STR, int $maxlen = 0, $driverdata = null) {}
 
     /**
-     * @param int|string $parameter
      * @param mixed $value
      * @return bool
      */
-    public function bindValue($parameter, $value, int $type = PDO::PARAM_STR) {}
+    public function bindValue(int|string $parameter, $value, int $type = PDO::PARAM_STR) {}
 
     /** @return bool */
     public function closeCursor() {}
index 56c1825198c016642e95a08946c70a1dc0e07ea1..ee06f81ee5ab0377648175894d0ca64973e54514 100644 (file)
@@ -71,7 +71,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_bindParam, 0, 0, 2)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_bindValue, 0, 0, 2)
-       ZEND_ARG_INFO(0, parameter)
+       ZEND_ARG_TYPE_MASK(0, parameter, MAY_BE_LONG|MAY_BE_STRING)
        ZEND_ARG_INFO(0, value)
        ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
 ZEND_END_ARG_INFO()
index 76cbe75dd72224e33f44f929202a62a4452bd511..7b11913d7b906046062895d09b1680a8c0c0a020 100644 (file)
@@ -144,8 +144,7 @@ class ReflectionGenerator
 
 class ReflectionMethod extends ReflectionFunctionAbstract
 {
-    /** @param object|string $class_or_method */
-    public function __construct($class_or_method, string $name = UNKNOWN) {}
+    public function __construct(object|string $class_or_method, string $name = UNKNOWN) {}
 
     /** @return string */
     public function __toString() {}
@@ -202,8 +201,7 @@ class ReflectionClass implements Reflector
 
     public static function export($argument, bool $return = false) {}
 
-    /** @param object|string $argument */
-    public function __construct($argument) {}
+    public function __construct(object|string $argument) {}
 
     /** @return string */
     public function __toString() {}
@@ -376,8 +374,7 @@ class ReflectionProperty implements Reflector
 
     public static function export($class, $name, bool $return = false) {}
 
-    /** @param string|object $class */
-    public function __construct($class, string $name) {}
+    public function __construct(string|object $class, string $name) {}
 
     /** @return string */
     public function __toString() {}
@@ -474,11 +471,7 @@ class ReflectionParameter implements Reflector
 
     public static function export($function, $parameter, bool $return = false) {}
 
-    /**
-     * @param string|array|object
-     * @param int|string
-     */
-    public function __construct($function,  $parameter) {}
+    public function __construct(string|array|object $function, int|string $parameter) {}
 
     /** @return string */
     public function __toString() {}
@@ -636,8 +629,7 @@ class ReflectionZendExtension implements Reflector
 
 final class ReflectionReference
 {
-    /** @param int|string $key */
-    public static function fromArrayElement(array $array, $key): ?ReflectionReference {}
+    public static function fromArrayElement(array $array, int|string $key): ?ReflectionReference {}
 
     public function getId(): string {}
 
index 35ee71373224d2e80fbdefcf691d8e8db0e6142b..fc6eac9a062874f6bc1ce152495d0a4877bd063a 100644 (file)
@@ -106,7 +106,7 @@ ZEND_END_ARG_INFO()
 #define arginfo_class_ReflectionGenerator_getExecutingGenerator arginfo_class_Reflector___toString
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionMethod___construct, 0, 0, 1)
-       ZEND_ARG_INFO(0, class_or_method)
+       ZEND_ARG_TYPE_MASK(0, class_or_method, MAY_BE_OBJECT|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
 ZEND_END_ARG_INFO()
 
@@ -166,7 +166,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionClass_export, 0, 0, 1)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionClass___construct, 0, 0, 1)
-       ZEND_ARG_INFO(0, argument)
+       ZEND_ARG_TYPE_MASK(0, argument, MAY_BE_OBJECT|MAY_BE_STRING)
 ZEND_END_ARG_INFO()
 
 #define arginfo_class_ReflectionClass___toString arginfo_class_Reflector___toString
@@ -300,7 +300,7 @@ ZEND_END_ARG_INFO()
 #define arginfo_class_ReflectionProperty_export arginfo_class_ReflectionMethod_export
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionProperty___construct, 0, 0, 2)
-       ZEND_ARG_INFO(0, class)
+       ZEND_ARG_TYPE_MASK(0, class, MAY_BE_STRING|MAY_BE_OBJECT)
        ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
 ZEND_END_ARG_INFO()
 
@@ -350,7 +350,10 @@ ZEND_END_ARG_INFO()
 
 #define arginfo_class_ReflectionClassConstant_export arginfo_class_ReflectionMethod_export
 
-#define arginfo_class_ReflectionClassConstant___construct arginfo_class_ReflectionProperty___construct
+ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionClassConstant___construct, 0, 0, 2)
+       ZEND_ARG_INFO(0, class)
+       ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
+ZEND_END_ARG_INFO()
 
 #define arginfo_class_ReflectionClassConstant___toString arginfo_class_Reflector___toString
 
@@ -379,8 +382,8 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionParameter_export, 0, 0, 2)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionParameter___construct, 0, 0, 2)
-       ZEND_ARG_INFO(0, function)
-       ZEND_ARG_INFO(0, parameter)
+       ZEND_ARG_TYPE_MASK(0, function, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT)
+       ZEND_ARG_TYPE_MASK(0, parameter, MAY_BE_LONG|MAY_BE_STRING)
 ZEND_END_ARG_INFO()
 
 #define arginfo_class_ReflectionParameter___toString arginfo_class_Reflector___toString
@@ -484,7 +487,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_ReflectionReference_fromArrayElement, 0, 2, ReflectionReference, 1)
        ZEND_ARG_TYPE_INFO(0, array, IS_ARRAY, 0)
-       ZEND_ARG_INFO(0, key)
+       ZEND_ARG_TYPE_MASK(0, key, MAY_BE_LONG|MAY_BE_STRING)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ReflectionReference_getId, 0, 0, IS_STRING, 0)
index a70e09fa68e1264d8921453775fa48ecc10aae5d..9708eb3eec0bbe665c2d3c0d38c5ad7b8389d17a 100644 (file)
@@ -44,7 +44,7 @@ Class [ <internal:Reflection> class ReflectionClass implements Reflector ] {
     Method [ <internal:Reflection, ctor> public method __construct ] {
 
       - Parameters [1] {
-        Parameter #0 [ <required> $argument ]
+        Parameter #0 [ <required> object|string $argument ]
       }
     }
 
index 46abc6b8168779eebcf011b9183ae6d6b26a7ecd..e460545e55e5bfa6bfdc0022d015b61af2ce55e7 100644 (file)
@@ -165,7 +165,7 @@ __toString():
 string(%d) "Method [ <internal:Reflection, ctor> public method __construct ] {
 
   - Parameters [2] {
-    Parameter #0 [ <required> $class ]
+    Parameter #0 [ <required> object|string $class ]
     Parameter #1 [ <required> string $name ]
   }
 }
@@ -177,7 +177,7 @@ Deprecated: Function ReflectionMethod::export() is deprecated in %s on line %d
 string(%d) "Method [ <internal:Reflection, ctor> public method __construct ] {
 
   - Parameters [2] {
-    Parameter #0 [ <required> $class ]
+    Parameter #0 [ <required> object|string $class ]
     Parameter #1 [ <required> string $name ]
   }
 }
index ce085637be1be112588c8f1ebd2e8d2d11a7b593..5f6b8fe3d61352a844b792337f21aa3b8baf710c 100644 (file)
@@ -1,26 +1,16 @@
 <?php
 
-/** @param array|string $object_id */
-function snmpget(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmpget(string $host, string $community, array|string $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
-/** @param array|string $object_id */
-function snmpgetnext(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmpgetnext(string $host, string $community, array|string $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
-/** @param array|string $object_id */
-function snmpwalk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmpwalk(string $host, string $community, array|string $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
-/** @param array|string $object_id */
-function snmprealwalk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmprealwalk(string $host, string $community, array|string $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
-/** @param array|string $object_id */
-function snmpwalkoid(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmpwalkoid(string $host, string $community, array|string $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
-/**
- * @param array|string $object_id
- * @param array|string $type
- * @param array|string $value
- */
-function snmpset(string $host, string $community, $object_id, $type, $value, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmpset(string $host, string $community, array|string $object_id, array|string $type, array|string $value, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
 function snmp_get_quick_print(): bool {}
 
@@ -32,43 +22,25 @@ function snmp_set_oid_output_format(int $oid_format): bool {}
 
 function snmp_set_oid_numeric_print(int $oid_format): bool {}
 
-/** @param array|string $object_id */
-function snmp2_get(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmp2_get(string $host, string $community, array|string $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
-/** @param array|string $object_id */
-function snmp2_getnext(string $host, string $community, $object_id, int $timeout = UNKOWN, int $retries = UNKNOWN): array|bool {}
+function snmp2_getnext(string $host, string $community, array|string $object_id, int $timeout = UNKOWN, int $retries = UNKNOWN): array|bool {}
 
-/** @param array|string $object_id */
-function snmp2_walk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmp2_walk(string $host, string $community, array|string $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
-/** @param array|string $object_id */
-function snmp2_real_walk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmp2_real_walk(string $host, string $community, array|string $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
-/**
- * @param array|string $object_id
- * @param array|string $type
- * @param array|string $value
- */
-function snmp2_set(string $host, string $community, $object_id, $type, $value, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmp2_set(string $host, string $community, array|string $object_id, array|string $type, array|string $value, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
-/** @param array|string $object_id */
-function snmp3_get(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmp3_get(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
-/** @param array|string $object_id */
-function snmp3_getnext(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKOWN): array|bool {}
+function snmp3_getnext(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, int $timeout = UNKNOWN, int $retries = UNKOWN): array|bool {}
 
-/** @param array|string $object_id */
-function snmp3_walk(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmp3_walk(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
-/** @param array|string $object_id */
-function snmp3_real_walk(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmp3_real_walk(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
-/**
- * @param array|string $object_id
- * @param array|string $type
- * @param array|string $value
- */
-function snmp3_set(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, $type, $value, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
+function snmp3_set(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, array|string $type, array|string $value, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
 function snmp_set_valueretrieval(int $method): bool {}
 
@@ -87,30 +59,24 @@ class SNMP
     function setSecurity(string $sec_level, string $auth_protocol = '', string $auth_passphrase = '', string $priv_protocol = '', string $priv_passphrase = '', string $contextName = '', string $contextEngineID = '') {}
 
     /**
-     * @param array|string $object_id
      * @return array|bool
      */
-    function get($object_id, bool $use_orignames = false) {}
+    function get(array|string $object_id, bool $use_orignames = false) {}
 
     /**
-     * @param array|string $object_id
      * @return array|bool
      */
-    function getnext($object_id) {}
+    function getnext(array|string $object_id) {}
 
     /**
-     * @param array|string $object_id
      * @return array|bool
      */
-    function walk($object_id, bool $suffix_keys = false, int $max_repetitions = UNKNOWN, int $non_repeaters = UNKNOWN) {}
+    function walk(array|string $object_id, bool $suffix_keys = false, int $max_repetitions = UNKNOWN, int $non_repeaters = UNKNOWN) {}
 
     /**
-     * @param array|string $object_id
-     * @param array|string $type
-     * @param array|string $value
      * @return array|bool
      */
-    function set($object_id, $type, $value) {}
+    function set(array|string $object_id, array|string $type, array|string $value) {}
 
     /** @return int */
     function getErrno() {}
index fdafded7d3a6d0efe4735de2c0bf725f577cf666..d2981d6ed6678249505638bb2985ed25ff87fa98 100644 (file)
@@ -3,7 +3,7 @@
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmpget, 0, 3, MAY_BE_ARRAY|MAY_BE_BOOL)
        ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, community, IS_STRING, 0)
-       ZEND_ARG_INFO(0, object_id)
+       ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, timeout, IS_LONG, 0)
        ZEND_ARG_TYPE_INFO(0, retries, IS_LONG, 0)
 ZEND_END_ARG_INFO()
@@ -19,9 +19,9 @@ ZEND_END_ARG_INFO()
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmpset, 0, 5, MAY_BE_ARRAY|MAY_BE_BOOL)
        ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, community, IS_STRING, 0)
-       ZEND_ARG_INFO(0, object_id)
-       ZEND_ARG_INFO(0, type)
-       ZEND_ARG_INFO(0, value)
+       ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING)
+       ZEND_ARG_TYPE_MASK(0, type, MAY_BE_ARRAY|MAY_BE_STRING)
+       ZEND_ARG_TYPE_MASK(0, value, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, timeout, IS_LONG, 0)
        ZEND_ARG_TYPE_INFO(0, retries, IS_LONG, 0)
 ZEND_END_ARG_INFO()
@@ -61,7 +61,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmp3_get, 0, 8, MAY_BE_ARRAY|MA
        ZEND_ARG_TYPE_INFO(0, auth_passphrase, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, priv_protocol, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, priv_passphrase, IS_STRING, 0)
-       ZEND_ARG_INFO(0, object_id)
+       ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, timeout, IS_LONG, 0)
        ZEND_ARG_TYPE_INFO(0, retries, IS_LONG, 0)
 ZEND_END_ARG_INFO()
@@ -80,9 +80,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmp3_set, 0, 10, MAY_BE_ARRAY|M
        ZEND_ARG_TYPE_INFO(0, auth_passphrase, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, priv_protocol, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, priv_passphrase, IS_STRING, 0)
-       ZEND_ARG_INFO(0, object_id)
-       ZEND_ARG_INFO(0, type)
-       ZEND_ARG_INFO(0, value)
+       ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING)
+       ZEND_ARG_TYPE_MASK(0, type, MAY_BE_ARRAY|MAY_BE_STRING)
+       ZEND_ARG_TYPE_MASK(0, value, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, timeout, IS_LONG, 0)
        ZEND_ARG_TYPE_INFO(0, retries, IS_LONG, 0)
 ZEND_END_ARG_INFO()
@@ -120,25 +120,25 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_setSecurity, 0, 0, 1)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_get, 0, 0, 1)
-       ZEND_ARG_INFO(0, object_id)
+       ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, use_orignames, _IS_BOOL, 0)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_getnext, 0, 0, 1)
-       ZEND_ARG_INFO(0, object_id)
+       ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_walk, 0, 0, 1)
-       ZEND_ARG_INFO(0, object_id)
+       ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, suffix_keys, _IS_BOOL, 0)
        ZEND_ARG_TYPE_INFO(0, max_repetitions, IS_LONG, 0)
        ZEND_ARG_TYPE_INFO(0, non_repeaters, IS_LONG, 0)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_set, 0, 0, 3)
-       ZEND_ARG_INFO(0, object_id)
-       ZEND_ARG_INFO(0, type)
-       ZEND_ARG_INFO(0, value)
+       ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING)
+       ZEND_ARG_TYPE_MASK(0, type, MAY_BE_ARRAY|MAY_BE_STRING)
+       ZEND_ARG_TYPE_MASK(0, value, MAY_BE_ARRAY|MAY_BE_STRING)
 ZEND_END_ARG_INFO()
 
 #define arginfo_class_SNMP_getErrno arginfo_class_SNMP_close
index 1d2179fe62cda65af1f80edd464a94ebbc42184c..29b4169579192d4847787be4cbe34c0084730a00 100755 (executable)
@@ -123,9 +123,8 @@ function array_fill_keys(array $keys, $val): array {}
 /**
  * @param int|float|string $low
  * @param int|float|string $high
- * @param int|float $step
  */
-function range($low, $high, $step = 1): array {}
+function range($low, $high, int|float $step = 1): array {}
 
 function shuffle(array &$arg): bool {}
 
@@ -160,10 +159,9 @@ function array_values(array $arg): array {}
 function array_count_values(array $arg): array {}
 
 /**
- * @param int|string|null $column_key
  * @param int|string|null $index_key
  */
-function array_column(array $arg, $column_key, $index_key = null): array {}
+function array_column(array $arg, int|string|null $column_key, $index_key = null): array {}
 
 function array_reverse(array $input, bool $preserve_keys = false): array {}
 
@@ -476,11 +474,9 @@ function header(string $string, bool $replace = true, int $http_response_code =
 
 function header_remove(string $name = UNKNOWN): void {}
 
-/** @param int|array $expires_or_options */
-function setrawcookie(string $name, string $value = '', $expires_or_options = 0, string $path = '', string $domain = '', bool $secure = false, bool $httponly = false): bool {}
+function setrawcookie(string $name, string $value = '', int|array $expires_or_options = 0, string $path = '', string $domain = '', bool $secure = false, bool $httponly = false): bool {}
 
-/** @param int|array $expires_or_options */
-function setcookie(string $name, string $value = '', $expires_or_options = 0, string $path = '', string $domain = '', bool $secure = false, bool $httponly = false): bool {}
+function setcookie(string $name, string $value = '', int|array $expires_or_options = 0, string $path = '', string $domain = '', bool $secure = false, bool $httponly = false): bool {}
 
 function http_response_code(int $response_code = 0): int|bool {}
 
@@ -602,20 +598,16 @@ function stripcslashes(string $str): string {}
 function stripslashes(string $str): string {}
 
 /**
- * @param string|array $search
- * @param string|array $replace
  * @param int $replace_count
  */
 function str_replace(
-    $search, $replace, string|array $subject, &$replace_count = UNKNOWN): string|array {}
+    string|array $search, string|array $replace, string|array $subject, &$replace_count = UNKNOWN): string|array {}
 
 /**
- * @param string|array $search
- * @param string|array $replace
  * @param int $replace_count
  */
 function str_ireplace(
-    $search, $replace, string|array $subject, &$replace_count = UNKNOWN): string|array {}
+    string|array $search, string|array $replace, string|array $subject, &$replace_count = UNKNOWN): string|array {}
 
 function hebrev(string $str, int $max_chars_per_line = 0): string {}
 
@@ -624,10 +616,7 @@ function nl2br(string $str, bool $is_xhtml = true): string {}
 /** @param mixed $allowable_tags */
 function strip_tags(string $str, $allowable_tags = UNKNOWN): string {}
 
-/**
- * @param string|array $locales
- */
-function setlocale(int $category, $locales, ...$rest): string|false {}
+function setlocale(int $category, string|array $locales, ...$rest): string|false {}
 
 /** @param array $result */
 function parse_str(string $encoded_string, &$result): void {}
@@ -1186,10 +1175,9 @@ function stream_context_get_params($context): array {}
 
 /**
  * @param resource $context
- * @param array|string $param2
  * @param mixed $value
  */
-function stream_context_set_option($context, $param2, string $option_name = UNKNOWN, $value = UNKNOWN): bool {}
+function stream_context_set_option($context, array|string $param2, string $option_name = UNKNOWN, $value = UNKNOWN): bool {}
 
 /** @param resource $stream_or_context */
 function stream_context_get_options($stream_or_context): array {}
@@ -1231,7 +1219,6 @@ function stream_socket_server(string $local_socket, &$errno = null, &$errstr = n
 
 /**
  * @param resource $server_socket
- * @param float $timeout
  * @return resource|false
  */
 function stream_socket_accept($server_socket, float $timeout = UNKNOWN, &$peername = null) {}
@@ -1457,11 +1444,7 @@ function sapi_windows_cp_set(int $cp): bool {}
 
 function sapi_windows_cp_get(string $kind = UNKNOWN): int {}
 
-/**
- * @param int|string $in_codepage
- * @param int|string $out_codepage
- */
-function sapi_windows_cp_conv($in_codepage, $out_codepage, string $subject) {}
+function sapi_windows_cp_conv(int|string $in_codepage, int|string $out_codepage, string $subject) {}
 
 function sapi_windows_cp_is_utf8(): bool {}
 
index 98c7ff77f7794d025bfa3df0a220d66e04d4f932..9c81d4271d978e92f0c19e2dc526b5b004b59b0f 100755 (executable)
@@ -176,7 +176,7 @@ ZEND_END_ARG_INFO()
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_range, 0, 2, IS_ARRAY, 0)
        ZEND_ARG_INFO(0, low)
        ZEND_ARG_INFO(0, high)
-       ZEND_ARG_INFO(0, step)
+       ZEND_ARG_TYPE_MASK(0, step, MAY_BE_LONG|MAY_BE_DOUBLE)
 ZEND_END_ARG_INFO()
 
 #define arginfo_shuffle arginfo_natsort
@@ -239,7 +239,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_array_column, 0, 2, IS_ARRAY, 0)
        ZEND_ARG_TYPE_INFO(0, arg, IS_ARRAY, 0)
-       ZEND_ARG_INFO(0, column_key)
+       ZEND_ARG_TYPE_MASK(0, column_key, MAY_BE_LONG|MAY_BE_STRING|MAY_BE_NULL)
        ZEND_ARG_INFO(0, index_key)
 ZEND_END_ARG_INFO()
 
@@ -734,7 +734,7 @@ ZEND_END_ARG_INFO()
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_setrawcookie, 0, 1, _IS_BOOL, 0)
        ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
-       ZEND_ARG_INFO(0, expires_or_options)
+       ZEND_ARG_TYPE_MASK(0, expires_or_options, MAY_BE_LONG|MAY_BE_ARRAY)
        ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, domain, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, secure, _IS_BOOL, 0)
@@ -958,8 +958,8 @@ ZEND_END_ARG_INFO()
 #define arginfo_stripslashes arginfo_base64_encode
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_str_replace, 0, 3, MAY_BE_STRING|MAY_BE_ARRAY)
-       ZEND_ARG_INFO(0, search)
-       ZEND_ARG_INFO(0, replace)
+       ZEND_ARG_TYPE_MASK(0, search, MAY_BE_STRING|MAY_BE_ARRAY)
+       ZEND_ARG_TYPE_MASK(0, replace, MAY_BE_STRING|MAY_BE_ARRAY)
        ZEND_ARG_TYPE_MASK(0, subject, MAY_BE_STRING|MAY_BE_ARRAY)
        ZEND_ARG_INFO(1, replace_count)
 ZEND_END_ARG_INFO()
@@ -983,7 +983,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_setlocale, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
        ZEND_ARG_TYPE_INFO(0, category, IS_LONG, 0)
-       ZEND_ARG_INFO(0, locales)
+       ZEND_ARG_TYPE_MASK(0, locales, MAY_BE_STRING|MAY_BE_ARRAY)
        ZEND_ARG_VARIADIC_INFO(0, rest)
 ZEND_END_ARG_INFO()
 
@@ -1845,7 +1845,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stream_context_set_option, 0, 2, _IS_BOOL, 0)
        ZEND_ARG_INFO(0, context)
-       ZEND_ARG_INFO(0, param2)
+       ZEND_ARG_TYPE_MASK(0, param2, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, option_name, IS_STRING, 0)
        ZEND_ARG_INFO(0, value)
 ZEND_END_ARG_INFO()
@@ -2170,8 +2170,8 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sapi_windows_cp_get, 0, 0, IS_LO
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_sapi_windows_cp_conv, 0, 0, 3)
-       ZEND_ARG_INFO(0, in_codepage)
-       ZEND_ARG_INFO(0, out_codepage)
+       ZEND_ARG_TYPE_MASK(0, in_codepage, MAY_BE_LONG|MAY_BE_STRING)
+       ZEND_ARG_TYPE_MASK(0, out_codepage, MAY_BE_LONG|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, subject, IS_STRING, 0)
 ZEND_END_ARG_INFO()
 
index 423fecb090244f29c49b207c34b1ca30ff39ed1c..44c2e44025aa0fe11976cdeb4a8b2b8b0018ba73 100644 (file)
@@ -1,22 +1,18 @@
 <?php
 
-/** @param array|string $config_options */
-function tidy_parse_string(string $input, $config_options = UNKNOWN, string $encoding = UNKNOWN): tidy|false {}
+function tidy_parse_string(string $input, array|string $config_options = UNKNOWN, string $encoding = UNKNOWN): tidy|false {}
 
 function tidy_get_error_buffer(tidy $object): string|false {}
 
 function tidy_get_output(tidy $object): string {}
 
-/** @param array|string $config_options */
-function tidy_parse_file(string $file, $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false): tidy|false {}
+function tidy_parse_file(string $file, array|string $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false): tidy|false {}
 
 function tidy_clean_repair(tidy $object): bool {}
 
-/** @param array|string $config_options */
-function tidy_repair_string(string $data, $config_options = UNKNOWN, string $encoding = UNKNOWN): string|false {}
+function tidy_repair_string(string $data, array|string $config_options = UNKNOWN, string $encoding = UNKNOWN): string|false {}
 
-/** @param array|string $config_options */
-function tidy_repair_file(string $filename, $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false): string|false {}
+function tidy_repair_file(string $filename, array|string $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false): string|false {}
 
 function tidy_diagnose(tidy $object): bool {}
 
@@ -56,25 +52,20 @@ function tidy_get_body(tidy $tidy): ?tidyNode {}
 
 class tidy
 {
-    /** @param array|string $config_options */
-    public function __construct(string $filename = UNKNOWN, $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false) {}
+    public function __construct(string $filename = UNKNOWN, array|string $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false) {}
 
     /** @return string|int|bool */
     public function getOpt(string $option) {}
 
     public function cleanRepair(): bool {}
 
-    /** @param array|string $config_options */
-    public function parseFile(string $file, $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false): bool {}
+    public function parseFile(string $file, array|string $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false): bool {}
 
-    /** @param array|string $config_options */
-    public function parseString(string $input, $config_options = UNKNOWN, string $encoding = UNKNOWN): bool {}
+    public function parseString(string $input, array|string $config_options = UNKNOWN, string $encoding = UNKNOWN): bool {}
 
-    /** @param array|string $config_options */
-    public function repairString(string $data, $config_options = UNKNOWN, string $encoding = UNKNOWN): bool {}
+    public function repairString(string $data, array|string $config_options = UNKNOWN, string $encoding = UNKNOWN): bool {}
 
-    /** @param array|string $config_options */
-    public function repairFile(string $filename, $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false): bool {}
+    public function repairFile(string $filename, array|string $config_options = UNKNOWN, string $encoding = UNKNOWN, bool $use_include_path = false): bool {}
 
     public function diagnose(): bool {}
 
index 7c2d8148d5e6478e5cbbf027cca0404939a19516..a22df1b35d6507c1ace16e2a99b8e37723443917 100644 (file)
@@ -2,7 +2,7 @@
 
 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_tidy_parse_string, 0, 1, tidy, MAY_BE_FALSE)
        ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)
-       ZEND_ARG_INFO(0, config_options)
+       ZEND_ARG_TYPE_MASK(0, config_options, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
 ZEND_END_ARG_INFO()
 
@@ -16,7 +16,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_tidy_parse_file, 0, 1, tidy, MAY_BE_FALSE)
        ZEND_ARG_TYPE_INFO(0, file, IS_STRING, 0)
-       ZEND_ARG_INFO(0, config_options)
+       ZEND_ARG_TYPE_MASK(0, config_options, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, use_include_path, _IS_BOOL, 0)
 ZEND_END_ARG_INFO()
@@ -27,13 +27,13 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_tidy_repair_string, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
        ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
-       ZEND_ARG_INFO(0, config_options)
+       ZEND_ARG_TYPE_MASK(0, config_options, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_tidy_repair_file, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
        ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
-       ZEND_ARG_INFO(0, config_options)
+       ZEND_ARG_TYPE_MASK(0, config_options, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, use_include_path, _IS_BOOL, 0)
 ZEND_END_ARG_INFO()
@@ -91,7 +91,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_tidy___construct, 0, 0, 0)
        ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
-       ZEND_ARG_INFO(0, config_options)
+       ZEND_ARG_TYPE_MASK(0, config_options, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, use_include_path, _IS_BOOL, 0)
 ZEND_END_ARG_INFO()
@@ -105,26 +105,26 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_tidy_parseFile, 0, 1, _IS_BOOL, 0)
        ZEND_ARG_TYPE_INFO(0, file, IS_STRING, 0)
-       ZEND_ARG_INFO(0, config_options)
+       ZEND_ARG_TYPE_MASK(0, config_options, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, use_include_path, _IS_BOOL, 0)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_tidy_parseString, 0, 1, _IS_BOOL, 0)
        ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0)
-       ZEND_ARG_INFO(0, config_options)
+       ZEND_ARG_TYPE_MASK(0, config_options, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_tidy_repairString, 0, 1, _IS_BOOL, 0)
        ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
-       ZEND_ARG_INFO(0, config_options)
+       ZEND_ARG_TYPE_MASK(0, config_options, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_tidy_repairFile, 0, 1, _IS_BOOL, 0)
        ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
-       ZEND_ARG_INFO(0, config_options)
+       ZEND_ARG_TYPE_MASK(0, config_options, MAY_BE_ARRAY|MAY_BE_STRING)
        ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, use_include_path, _IS_BOOL, 0)
 ZEND_END_ARG_INFO()
index b1f756d17f73d35d7afd7da8fff4995e0703c733..be1588c2e40998318b27dd99692482e064b0f737 100644 (file)
@@ -90,9 +90,9 @@ string(%d) "Extension [ <persistent> extension #%d pcre version %s ] {
     Function [ <internal:pcre> function preg_replace ] {
 
       - Parameters [5] {
-        Parameter #0 [ <required> $regex ]
-        Parameter #1 [ <required> $replace ]
-        Parameter #2 [ <required> $subject ]
+        Parameter #0 [ <required> array|string $regex ]
+        Parameter #1 [ <required> array|string $replace ]
+        Parameter #2 [ <required> array|string $subject ]
         Parameter #3 [ <optional> int $limit ]
         Parameter #4 [ <optional> &$count ]
       }
@@ -101,9 +101,9 @@ string(%d) "Extension [ <persistent> extension #%d pcre version %s ] {
     Function [ <internal:pcre> function preg_replace_callback ] {
 
       - Parameters [6] {
-        Parameter #0 [ <required> $regex ]
+        Parameter #0 [ <required> array|string $regex ]
         Parameter #1 [ <required> $callback ]
-        Parameter #2 [ <required> $subject ]
+        Parameter #2 [ <required> array|string $subject ]
         Parameter #3 [ <optional> int $limit ]
         Parameter #4 [ <optional> &$count ]
         Parameter #5 [ <optional> int $flags ]
@@ -114,7 +114,7 @@ string(%d) "Extension [ <persistent> extension #%d pcre version %s ] {
 
       - Parameters [5] {
         Parameter #0 [ <required> array $pattern ]
-        Parameter #1 [ <required> $subject ]
+        Parameter #1 [ <required> array|string $subject ]
         Parameter #2 [ <optional> int $limit ]
         Parameter #3 [ <optional> &$count ]
         Parameter #4 [ <optional> int $flags ]
@@ -124,9 +124,9 @@ string(%d) "Extension [ <persistent> extension #%d pcre version %s ] {
     Function [ <internal:pcre> function preg_filter ] {
 
       - Parameters [5] {
-        Parameter #0 [ <required> $regex ]
-        Parameter #1 [ <required> $replace ]
-        Parameter #2 [ <required> $subject ]
+        Parameter #0 [ <required> array|string $regex ]
+        Parameter #1 [ <required> array|string $replace ]
+        Parameter #2 [ <required> array|string $subject ]
         Parameter #3 [ <optional> int $limit ]
         Parameter #4 [ <optional> &$count ]
       }