Commit 33e9057efd3 for php.net
commit 33e9057efd3109b62fc6c0ff643dfc1f4d2b8268
Author: NickSdot <32384907+NickSdot@users.noreply.github.com>
Date: Mon Aug 24 14:53:07 2026 +0700
[skip ci] docs: Change example to use Throwable (#23430)
diff --git a/CODING_STANDARDS.md b/CODING_STANDARDS.md
index f2c559a389f..f2321f7330b 100644
--- a/CODING_STANDARDS.md
+++ b/CODING_STANDARDS.md
@@ -300,7 +300,8 @@ rewritten to comply with these rules.
```diff
try {
throw new ValueError('foo');
- } catch (ValueError $e) {
+- } catch (ValueError $e) {
++ } catch (Throwable $e) {
- echo $e->getMessage(), "\n";
+ echo $e::class, ': ', $e->getMessage(), "\n";
}