php8.5
Home/ Manual/ reflection / reflectionextension/ ReflectionExtension::__clone

ReflectionExtension::__clone

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Clones

Description

ReflectionExtension::__clone(): void

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

Parameters Parameters

Return Values

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

Changelog

VersionDescription
8.1.0This method is no longer final.

See Also

Source: reference/reflection/reflectionextension/clone.xml · from the official PHP manual (php/doc-en)