Declare the $value param of define() as mixed

This commit is contained in:
Máté Kocsis 2021-07-14 22:02:59 +02:00
parent 6776e0557e
commit 339ce9430e
No known key found for this signature in database
GPG key ID: FD055E41728BF310
2 changed files with 3 additions and 4 deletions

View file

@ -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 {}

View file

@ -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()