You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try {
changeImportantData();
} catch (PermissionException) { // The intention is clear: exception details are irrelevantecho"You don't have permission to do this";
}
The text was updated successfully, but these errors were encountered:
RFC: https://wiki.php.net/rfc/non-capturing_catches
Example:
The text was updated successfully, but these errors were encountered: