Skip to content

Commit 339ce94

Browse files
committed
Declare the $value param of define() as mixed
1 parent 6776e05 commit 339ce94

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Zend/zend_builtin_functions.stub.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ function strncasecmp(string $string1, string $string2, int $length): int {}
2626

2727
function error_reporting(?int $error_level = null): int {}
2828

29-
/** @param mixed $value */
30-
function define(string $constant_name, $value, bool $case_insensitive = false): bool {}
29+
function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool {}
3130

3231
function defined(string $constant_name): bool {}
3332

Zend/zend_builtin_functions_arginfo.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: c333499e3ea100d976f0fa8bb8800ed21b04f1c6 */
2+
* Stub hash: 38936b472d60d9eeb2cc8e35c1276e9f707837bf */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_version, 0, 0, IS_STRING, 0)
55
ZEND_END_ARG_INFO()
@@ -39,7 +39,7 @@ ZEND_END_ARG_INFO()
3939

4040
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_define, 0, 2, _IS_BOOL, 0)
4141
ZEND_ARG_TYPE_INFO(0, constant_name, IS_STRING, 0)
42-
ZEND_ARG_INFO(0, value)
42+
ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
4343
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, case_insensitive, _IS_BOOL, 0, "false")
4444
ZEND_END_ARG_INFO()
4545

0 commit comments

Comments
 (0)