Skip to content

Commit f70ca77

Browse files
Majkl578sgolemon
authored andcommitted
Revert BC break caused by fixing bug #74035
This reverts commit 9ffc6ca.
1 parent 5060fc2 commit f70ca77

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

ext/reflection/php_reflection.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4715,7 +4715,7 @@ ZEND_METHOD(reflection_class, isInstance)
47154715
}
47164716
/* }}} */
47174717

4718-
/* {{{ proto public stdclass ReflectionClass::newInstance([mixed* args], ...)
4718+
/* {{{ proto public stdclass ReflectionClass::newInstance(mixed* args, ...)
47194719
Returns an instance of this class */
47204720
ZEND_METHOD(reflection_class, newInstance)
47214721
{
@@ -6419,8 +6419,8 @@ ZEND_BEGIN_ARG_INFO(arginfo_reflection_class_isInstance, 0)
64196419
ZEND_ARG_INFO(0, object)
64206420
ZEND_END_ARG_INFO()
64216421

6422-
ZEND_BEGIN_ARG_INFO_EX(arginfo_reflection_class_newInstance, 0, 0, 0)
6423-
ZEND_ARG_VARIADIC_INFO(0, args)
6422+
ZEND_BEGIN_ARG_INFO(arginfo_reflection_class_newInstance, 0)
6423+
ZEND_ARG_INFO(0, args)
64246424
ZEND_END_ARG_INFO()
64256425

64266426
ZEND_BEGIN_ARG_INFO(arginfo_reflection_class_newInstanceWithoutConstructor, 0)

ext/reflection/tests/ReflectionClass_toString_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Class [ <internal:Reflection> class ReflectionClass implements Reflector ] {
265265
Method [ <internal:Reflection> public method newInstance ] {
266266

267267
- Parameters [1] {
268-
Parameter #0 [ <optional> ...$args ]
268+
Parameter #0 [ <required> $args ]
269269
}
270270
}
271271

ext/reflection/tests/bug74035.phpt

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)