php8.5
Home/ Manual/ predefined / error/ Error::__clone

Error::__clone

PHP function Edit on GitHub ✎

(PHP 7, PHP 8)

Clone the error

Description

Error::__clone(): void

Error can not be cloned, so this method results in fatal error.

Parameters Parameters

Return Values

Void

Errors/Exceptions

Errors are not clonable.

Changelog

VersionDescription
8.1.0Error::__clone is no longer final.

Source: language/predefined/error/clone.xml · from the official PHP manual (php/doc-en)