Skip to content

Add warning about cloning exceptions - #5276

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:fix/exception-clone-clarity
Open

Add warning about cloning exceptions#5276
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:fix/exception-clone-clarity

Conversation

@lacatoire

@lacatoire lacatoire commented Feb 5, 2026

Copy link
Copy Markdown
Member

Fixes #3418

Highlight that exceptions cannot be cloned, and update the Exception class example for PHP 8.1+.

Happy to adjust if needed.

@lacatoire lacatoire closed this Mar 2, 2026
@lacatoire lacatoire changed the title Clarify that exceptions cannot be cloned Add warning about cloning exceptions Mar 2, 2026
@lacatoire lacatoire reopened this Aug 28, 2026
@lacatoire
lacatoire force-pushed the fix/exception-clone-clarity branch from 592354b to 3684fc1 Compare August 28, 2026 12:19
@lacatoire
lacatoire force-pushed the fix/exception-clone-clarity branch from 3684fc1 to bb6220f Compare August 28, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make it clearer that Exceptions cannot be cloned

1 participant