Merge branch 'PHP-8.4'

* PHP-8.4:
  Fix the name of the initializer parameter of ReflectionClass::resetAsLazyGhost()
This commit is contained in:
Arnaud Le Blanc 2024-11-12 18:52:16 +01:00
commit a087442259
No known key found for this signature in database
GPG Key ID: 0098C05DD15ABC13
3 changed files with 9 additions and 5 deletions

View File

@ -374,7 +374,7 @@ class ReflectionClass implements Reflector
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 {}

View File

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: dbb59b2dd53c2849f66c00ce12228ebb07f50773 */
* Stub hash: 3c6be99bb36965139464925a618cb0bf03affa62 */
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)
@ -301,11 +301,15 @@ ZEND_END_ARG_INFO()
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, 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_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_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)

View File

@ -354,7 +354,7 @@ Class [ <internal:Reflection> class ReflectionClass implements Stringable, Refle
- Parameters [3] {
Parameter #0 [ <required> object $object ]
Parameter #1 [ <required> callable $factory ]
Parameter #1 [ <required> callable $initializer ]
Parameter #2 [ <optional> int $options = 0 ]
}
- Return [ void ]