[PHP-CVS] [php-src] master: [skip ci] docs: Change example to use Throwable (#23430)

[email protected] (NickSdot via GitHub)
Newsgroups php.cvs
Message-ID <[email protected]>
Author: NickSdot (NickSdot)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2026-08-24T09:53:07+02:00

Commit: https://github.com/php/php-src/commit/33e9057efd3109b62fc6c0ff643dfc1f4d2b8268
Raw diff: https://github.com/php/php-src/commit/33e9057efd3109b62fc6c0ff643dfc1f4d2b8268.diff

[skip ci] docs: Change example to use Throwable (#23430)

Changed paths:
  M  CODING_STANDARDS.md


Diff:

diff --git a/CODING_STANDARDS.md b/CODING_STANDARDS.md
index f2c559a389ff..f2321f7330bc 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";
   }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.