mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Declare the $value param of define() as mixed
This commit is contained in:
parent
6776e0557e
commit
339ce9430e
2 changed files with 3 additions and 4 deletions
|
@ -26,8 +26,7 @@ function strncasecmp(string $string1, string $string2, int $length): int {}
|
|||
|
||||
function error_reporting(?int $error_level = null): int {}
|
||||
|
||||
/** @param mixed $value */
|
||||
function define(string $constant_name, $value, bool $case_insensitive = false): bool {}
|
||||
function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool {}
|
||||
|
||||
function defined(string $constant_name): bool {}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: c333499e3ea100d976f0fa8bb8800ed21b04f1c6 */
|
||||
* Stub hash: 38936b472d60d9eeb2cc8e35c1276e9f707837bf */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_version, 0, 0, IS_STRING, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
@ -39,7 +39,7 @@ ZEND_END_ARG_INFO()
|
|||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_define, 0, 2, _IS_BOOL, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, constant_name, IS_STRING, 0)
|
||||
ZEND_ARG_INFO(0, value)
|
||||
ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, case_insensitive, _IS_BOOL, 0, "false")
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue