mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix the name of the initializer parameter of ReflectionClass::resetAsLazyGhost()
Closes GH-16758
This commit is contained in:
parent
382be923ae
commit
a8151fc511
4 changed files with 13 additions and 5 deletions
4
NEWS
4
NEWS
|
@ -17,6 +17,10 @@ PHP NEWS
|
||||||
- PDO:
|
- PDO:
|
||||||
. Fixed memory leak of `setFetchMode()`. (SakiTakamachi)
|
. Fixed memory leak of `setFetchMode()`. (SakiTakamachi)
|
||||||
|
|
||||||
|
- Reflection:
|
||||||
|
. Fixed the name of the second parameter of
|
||||||
|
ReflectionClass::resetAsLazyGhost(). (Arnaud)
|
||||||
|
|
||||||
- Standard:
|
- Standard:
|
||||||
. Fixed parameter names of fpow() to be identical to pow(). (Girgias)
|
. Fixed parameter names of fpow() to be identical to pow(). (Girgias)
|
||||||
|
|
||||||
|
|
|
@ -380,7 +380,7 @@ class ReflectionClass implements Reflector
|
||||||
|
|
||||||
public function newLazyProxy(callable $factory, int $options = 0): object {}
|
public function newLazyProxy(callable $factory, int $options = 0): object {}
|
||||||
|
|
||||||
public function resetAsLazyGhost(object $object, callable $factory, int $options = 0): void {}
|
public function resetAsLazyGhost(object $object, callable $initializer, int $options = 0): void {}
|
||||||
|
|
||||||
public function resetAsLazyProxy(object $object, callable $factory, int $options = 0): void {}
|
public function resetAsLazyProxy(object $object, callable $factory, int $options = 0): void {}
|
||||||
|
|
||||||
|
|
10
ext/reflection/php_reflection_arginfo.h
generated
10
ext/reflection/php_reflection_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
||||||
/* This is a generated file, edit the .stub.php file instead.
|
/* This is a generated file, edit the .stub.php file instead.
|
||||||
* Stub hash: 2620fb2d8fc950283bfc174372c72361b37e9d41 */
|
* Stub hash: 0f56ad99157c52b2f259fa6607872de6a134c1b5 */
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Reflection_getModifierNames, 0, 1, IS_ARRAY, 0)
|
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)
|
ZEND_ARG_TYPE_INFO(0, modifiers, IS_LONG, 0)
|
||||||
|
@ -299,11 +299,15 @@ ZEND_END_ARG_INFO()
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ReflectionClass_resetAsLazyGhost, 0, 2, IS_VOID, 0)
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ReflectionClass_resetAsLazyGhost, 0, 2, IS_VOID, 0)
|
||||||
ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
|
ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
|
||||||
ZEND_ARG_TYPE_INFO(0, factory, IS_CALLABLE, 0)
|
ZEND_ARG_TYPE_INFO(0, initializer, IS_CALLABLE, 0)
|
||||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
|
||||||
ZEND_END_ARG_INFO()
|
ZEND_END_ARG_INFO()
|
||||||
|
|
||||||
#define arginfo_class_ReflectionClass_resetAsLazyProxy arginfo_class_ReflectionClass_resetAsLazyGhost
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ReflectionClass_resetAsLazyProxy, 0, 2, IS_VOID, 0)
|
||||||
|
ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
|
||||||
|
ZEND_ARG_TYPE_INFO(0, factory, IS_CALLABLE, 0)
|
||||||
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
|
||||||
|
ZEND_END_ARG_INFO()
|
||||||
|
|
||||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ReflectionClass_initializeLazyObject, 0, 1, IS_OBJECT, 0)
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ReflectionClass_initializeLazyObject, 0, 1, IS_OBJECT, 0)
|
||||||
ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
|
ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
|
||||||
|
|
|
@ -354,7 +354,7 @@ Class [ <internal:Reflection> class ReflectionClass implements Stringable, Refle
|
||||||
|
|
||||||
- Parameters [3] {
|
- Parameters [3] {
|
||||||
Parameter #0 [ <required> object $object ]
|
Parameter #0 [ <required> object $object ]
|
||||||
Parameter #1 [ <required> callable $factory ]
|
Parameter #1 [ <required> callable $initializer ]
|
||||||
Parameter #2 [ <optional> int $options = 0 ]
|
Parameter #2 [ <optional> int $options = 0 ]
|
||||||
}
|
}
|
||||||
- Return [ void ]
|
- Return [ void ]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue