File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ class Exception implements Throwable
419419
420420 public function __construct($message = '', $code = 0, ?Throwable $previous = null);
421421
422- final private function __clone(); // Inhibits cloning of exceptions.
422+ private function __clone(); // Inhibits cloning of exceptions.
423423
424424 final public function getMessage(); // message of exception
425425 final public function getCode(); // code of exception
Original file line number Diff line number Diff line change 1212 <modifier >private</modifier > <type >void</type ><methodname >Exception::__clone</methodname >
1313 <void />
1414 </methodsynopsis >
15- <para >
16- <classname >Exception</classname >s cannot be cloned,
17- and attempting to do so will throw an <classname >Error</classname >.
18- </para >
15+ <warning >
16+ <simpara >
17+ <classname >Exception</classname >s cannot be cloned.
18+ Attempting to clone an exception will throw an
19+ <classname >Error</classname >.
20+ </simpara >
21+ </warning >
1922 </refsect1 >
2023
2124 <refsect1 role =" parameters" >
5154 <row >
5255 <entry >8.1.0</entry >
5356 <entry >
54- <methodname >Exception::__clone</methodname > is no longer final.
57+ <methodname >Exception::__clone</methodname > is no longer
58+ <modifier >final</modifier >. However, exceptions still cannot
59+ be cloned; the <modifier >final</modifier > modifier was removed
60+ because <literal >private final</literal > is logically redundant.
5561 </entry >
5662 </row >
5763 </tbody >
You can’t perform that action at this time.
0 commit comments