Skip to content

Commit a4b253c

Browse files
committed
ReflectionMethod::invoke() object is not optional
1 parent 75c4e61 commit a4b253c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/reflection/php_reflection.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function getClosure($object = UNKNOWN) {}
184184
public function getModifiers() {}
185185

186186
/** @return mixed */
187-
public function invoke(?object $object = null, mixed ...$args) {}
187+
public function invoke(?object $object, mixed ...$args) {}
188188

189189
/** @return mixed */
190190
public function invokeArgs(?object $object, array $args) {}

ext/reflection/php_reflection_arginfo.h

Lines changed: 3 additions & 3 deletions
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: 2facddef786be36211215451083b610a5d09dec7 */
2+
* Stub hash: 762e9bab89b8edae0b567c1c3926ffa226abe874 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Reflection_getModifierNames, 0, 0, 1)
55
ZEND_ARG_TYPE_INFO(0, modifiers, IS_LONG, 0)
@@ -129,8 +129,8 @@ ZEND_END_ARG_INFO()
129129

130130
#define arginfo_class_ReflectionMethod_getModifiers arginfo_class_ReflectionFunctionAbstract___clone
131131

132-
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionMethod_invoke, 0, 0, 0)
133-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, object, IS_OBJECT, 1, "null")
132+
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionMethod_invoke, 0, 0, 1)
133+
ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 1)
134134
ZEND_ARG_VARIADIC_TYPE_INFO(0, args, IS_MIXED, 0)
135135
ZEND_END_ARG_INFO()
136136

0 commit comments

Comments
 (0)