php / 8.1.5 / reflectionextension.clone.html /

ReflectionExtension::__clone

(PHP 5, PHP 7, PHP 8)

ReflectionExtension::__cloneClones

Description

private ReflectionExtension::__clone(): void

The clone method prevents an object from being cloned. Reflection objects cannot be cloned.

Parameters

This function has no parameters.

Return Values

No value is returned, if called a fatal error will occur.

Changelog

Version Description
8.1.0 This method is no longer final.

See Also

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionextension.clone.php