Skip to content

Commit 7f7ad37

Browse files
committedAug 31, 2024
Update stubs
1 parent 9bd59d7 commit 7f7ad37

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
 

‎stubs/ext/reflection/ReflectionClass.php

+38
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,38 @@ public function newInstanceWithoutConstructor()
276276
public function newInstanceArgs(array $args = [])
277277
{
278278
}
279+
#[\Since('8.4')]
280+
public function newLazyGhost(callable $initializer, int $options = 0): object
281+
{
282+
}
283+
#[\Since('8.4')]
284+
public function newLazyProxy(callable $factory, int $options = 0): object
285+
{
286+
}
287+
#[\Since('8.4')]
288+
public function resetAsLazyGhost(object $object, callable $factory, int $options = 0): void
289+
{
290+
}
291+
#[\Since('8.4')]
292+
public function resetAsLazyProxy(object $object, callable $factory, int $options = 0): void
293+
{
294+
}
295+
#[\Since('8.4')]
296+
public function initializeLazyObject(object $object): object
297+
{
298+
}
299+
#[\Since('8.4')]
300+
public function isUninitializedLazyObject(object $object): bool
301+
{
302+
}
303+
#[\Since('8.4')]
304+
public function markLazyObjectAsInitialized(object $object): object
305+
{
306+
}
307+
#[\Since('8.4')]
308+
public function getLazyInitializer(object $object): ?callable
309+
{
310+
}
279311
/**
280312
* @tentative-return-type
281313
* @return (ReflectionClass | false)
@@ -423,4 +455,10 @@ public function getAttributes(?string $name = null, int $flags = 0): array
423455
/** @cvalue ZEND_ACC_READONLY_CLASS */
424456
#[\Since('8.4')]
425457
public const int IS_READONLY = UNKNOWN;
458+
/** @cvalue ZEND_LAZY_OBJECT_SKIP_INITIALIZATION_ON_SERIALIZE */
459+
#[\Since('8.4')]
460+
public const int SKIP_INITIALIZATION_ON_SERIALIZE = UNKNOWN;
461+
/** @cvalue ZEND_LAZY_OBJECT_SKIP_DESTRUCTOR */
462+
#[\Since('8.4')]
463+
public const int SKIP_DESTRUCTOR = UNKNOWN;
426464
}

‎stubs/ext/reflection/ReflectionProperty.php

+8
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ public function getRawValue(object $object): mixed
4747
public function setRawValue(object $object, mixed $value): void
4848
{
4949
}
50+
#[\Since('8.4')]
51+
public function setRawValueWithoutLazyInitialization(object $object, mixed $value): void
52+
{
53+
}
54+
#[\Since('8.4')]
55+
public function skipLazyInitialization(object $object): void
56+
{
57+
}
5058
/**
5159
* @tentative-return-type
5260
* @return bool

0 commit comments

Comments
 (0)