$reflector->newLazyGhost(static fn() => null)
RET: MyClass
$reflector->newLazyProxy(static fn() => null)
RET: MyClass
$reflector->resetAsLazyGhost($m, static fn() => null)
RET: null
$reflector->resetAsLazyGhost($s, static fn() => null)
RET: null
$reflector->resetAsLazyGhost($o, static fn() => null)
ERR: TypeError: ReflectionClass::resetAsLazyGhost(): Argument #1 ($object) must be of type MyClass, OtherClass given
$reflector->resetAsLazyProxy($m, static fn() => null)
RET: null
$reflector->resetAsLazyProxy($s, static fn() => null)
RET: null
$reflector->resetAsLazyProxy($o, static fn() => null)
ERR: TypeError: ReflectionClass::resetAsLazyProxy(): Argument #1 ($object) must be of type MyClass, OtherClass given
$reflector->initializeLazyObject($o)
ERR: TypeError: ReflectionClass::initializeLazyObject(): Argument #1 ($object) must be of type MyClass, OtherClass given
$reflector->initializeLazyObject($o)
ERR: TypeError: ReflectionClass::initializeLazyObject(): Argument #1 ($object) must be of type MyClass, OtherClass given
$reflector->initializeLazyObject($o)
ERR: TypeError: ReflectionClass::initializeLazyObject(): Argument #1 ($object) must be of type MyClass, OtherClass given
$reflector->markLazyObjectAsInitialized($o)
ERR: TypeError: ReflectionClass::markLazyObjectAsInitialized(): Argument #1 ($object) must be of type MyClass, OtherClass given
$reflector->markLazyObjectAsInitialized($o)
ERR: TypeError: ReflectionClass::markLazyObjectAsInitialized(): Argument #1 ($object) must be of type MyClass, OtherClass given
$reflector->markLazyObjectAsInitialized($o)
ERR: TypeError: ReflectionClass::markLazyObjectAsInitialized(): Argument #1 ($object) must be of type MyClass, OtherClass given
$reflector->getLazyInitializer($o)
ERR: TypeError: ReflectionClass::getLazyInitializer(): Argument #1 ($object) must be of type MyClass, OtherClass given
$reflector->getLazyInitializer($o)
ERR: TypeError: ReflectionClass::getLazyInitializer(): Argument #1 ($object) must be of type MyClass, OtherClass given
$reflector->getLazyInitializer($o)
ERR: TypeError: ReflectionClass::getLazyInitializer(): Argument #1 ($object) must be of type MyClass, OtherClass given
$reflector->isUninitializedLazyObject($o)
ERR: TypeError: ReflectionClass::isUninitializedLazyObject(): Argument #1 ($object) must be of type MyClass, OtherClass given
$reflector->isUninitializedLazyObject($o)
ERR: TypeError: ReflectionClass::isUninitializedLazyObject(): Argument #1 ($object) must be of type MyClass, OtherClass given
$reflector->isUninitializedLazyObject($o)
ERR: TypeError: ReflectionClass::isUninitializedLazyObject(): Argument #1 ($object) must be of type MyClass, OtherClass given
Output for 8.2.31 - 8.2.32, 8.3.5 - 8.3.32
$reflector->newLazyGhost(static fn() => null)
ERR: Error: Call to undefined method ReflectionClass::newLazyGhost()
$reflector->newLazyProxy(static fn() => null)
ERR: Error: Call to undefined method ReflectionClass::newLazyProxy()
$reflector->resetAsLazyGhost($m, static fn() => null)
ERR: Error: Call to undefined method ReflectionClass::resetAsLazyGhost()
$reflector->resetAsLazyGhost($s, static fn() => null)
ERR: Error: Call to undefined method ReflectionClass::resetAsLazyGhost()
$reflector->resetAsLazyGhost($o, static fn() => null)
ERR: Error: Call to undefined method ReflectionClass::resetAsLazyGhost()
$reflector->resetAsLazyProxy($m, static fn() => null)
ERR: Error: Call to undefined method ReflectionClass::resetAsLazyProxy()
$reflector->resetAsLazyProxy($s, static fn() => null)
ERR: Error: Call to undefined method ReflectionClass::resetAsLazyProxy()
$reflector->resetAsLazyProxy($o, static fn() => null)
ERR: Error: Call to undefined method ReflectionClass::resetAsLazyProxy()
$reflector->initializeLazyObject($o)
ERR: Error: Call to undefined method ReflectionClass::initializeLazyObject()
$reflector->initializeLazyObject($o)
ERR: Error: Call to undefined method ReflectionClass::initializeLazyObject()
$reflector->initializeLazyObject($o)
ERR: Error: Call to undefined method ReflectionClass::initializeLazyObject()
$reflector->markLazyObjectAsInitialized($o)
ERR: Error: Call to undefined method ReflectionClass::markLazyObjectAsInitialized()
$reflector->markLazyObjectAsInitialized($o)
ERR: Error: Call to undefined method ReflectionClass::markLazyObjectAsInitialized()
$reflector->markLazyObjectAsInitialized($o)
ERR: Error: Call to undefined method ReflectionClass::markLazyObjectAsInitialized()
$reflector->getLazyInitializer($o)
ERR: Error: Call to undefined method ReflectionClass::getLazyInitializer()
$reflector->getLazyInitializer($o)
ERR: Error: Call to undefined method ReflectionClass::getLazyInitializer()
$reflector->getLazyInitializer($o)
ERR: Error: Call to undefined method ReflectionClass::getLazyInitializer()
$reflector->isUninitializedLazyObject($o)
ERR: Error: Call to undefined method ReflectionClass::isUninitializedLazyObject()
$reflector->isUninitializedLazyObject($o)
ERR: Error: Call to undefined method ReflectionClass::isUninitializedLazyObject()
$reflector->isUninitializedLazyObject($o)
ERR: Error: Call to undefined method ReflectionClass::isUninitializedLazyObject()