diff --git a/ext/reflection/php_reflection.stub.php b/ext/reflection/php_reflection.stub.php index 28a79feee7542..f85826308a11a 100644 --- a/ext/reflection/php_reflection.stub.php +++ b/ext/reflection/php_reflection.stub.php @@ -638,8 +638,7 @@ class ReflectionParameter implements Reflector /** @implementation-alias ReflectionClass::__clone */ private function __clone(): void {} - /** @param string|array|object $function */ - public function __construct($function, int|string $param) {} + public function __construct(string|array|object $function, int|string $param) {} public function __toString(): string {} diff --git a/ext/reflection/php_reflection_arginfo.h b/ext/reflection/php_reflection_arginfo.h index 8657cf31e38ce..77343a6bd47b8 100644 --- a/ext/reflection/php_reflection_arginfo.h +++ b/ext/reflection/php_reflection_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 261798b92d4eac170538185ced1068bc72705385 */ + * Stub hash: a7f13bddd4915c489acbfaf05045973b8a65de72 */ ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Reflection_getModifierNames, 0, 1, IS_ARRAY, 0) ZEND_ARG_TYPE_INFO(0, modifiers, IS_LONG, 0) @@ -502,7 +502,7 @@ ZEND_END_ARG_INFO() #define arginfo_class_ReflectionParameter___clone arginfo_class_ReflectionFunctionAbstract___clone ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionParameter___construct, 0, 0, 2) - ZEND_ARG_INFO(0, function) + ZEND_ARG_TYPE_MASK(0, function, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT, NULL) ZEND_ARG_TYPE_MASK(0, param, MAY_BE_LONG|MAY_BE_STRING, NULL) ZEND_END_ARG_INFO()