[php-src] PR #15926: Fix some misleading comments about `__clone()` never being executed
| From: | DanielEScherzer | Date: | Mon, 16 Sep 2024 18:58:18 +0000 |
| Subject: | [php-src] PR #15926: Fix some misleading comments about `__clone()` never being executed | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28626@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15926
Author: DanielEScherzer
For the
Exception, ReflectionClass, and ReflectionAttribute
classes, the __clone() method is declared to be private, and the implementation has a
comment that it should never be executed. However, the implementation can be executed by using a
ReflectionMethod. Fix the comments to instead explain why the implementation is needed.
[skip ci]