[doc-en] master: Describe precedence for pipe and throw operators (#5083)
| From: | Vadim Dvorovenko via GitHub | Date: | Thu, 15 Jan 2026 09:23:37 +0000 |
| Subject: | [doc-en] master: Describe precedence for pipe and throw operators (#5083) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-22953@lists.php.net to get a copy of this message | ||
Author: Vadim Dvorovenko (vadimonus)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2026-01-15T10:23:32+01:00
Commit: https://github.com/php/doc-en/commit/a7428462fea1c0387cf5e8473b4c48c3c8ac8c2c
Raw diff: https://github.com/php/doc-en/commit/a7428462fea1c0387cf5e8473b4c48c3c8ac8c2c.diff
Describe precedence for pipe and throw operators (#5083)
* Throw operator precedence
* Pipe operator precedence
* Update language/operators/precedence.xml
Co-authored-by: Larry Garfield <larry@garfieldtech.com>
---------
Co-authored-by: Larry Garfield <larry@garfieldtech.com>
Changed paths:
M language/operators/precedence.xml
Diff:
diff --git a/language/operators/precedence.xml b/language/operators/precedence.xml
index 15d4869c384e..6808a8daa162 100644
--- a/language/operators/precedence.xml
+++ b/language/operators/precedence.xml
@@ -144,6 +144,13 @@
<link linkend="language.operators.string">string</link> (as of PHP
8.0.0)
</entry>
</row>
+ <row>
+ <entry>left</entry>
+ <entry><literal>|></literal></entry>
+ <entry>
+ <link linkend="language.operators.functional">pipe</link>
+ </entry>
+ </row>
<row>
<entry>non-associative</entry>
<entry>
@@ -282,6 +289,13 @@
<link linkend="language.operators.logical">logical</link>
</entry>
</row>
+ <row>
+ <entry>(n/a)</entry>
+ <entry><literal>throw</literal></entry>
+ <entry>
+ <link linkend="language.exceptions">throw</link>
+ </entry>
+ </row>
</tbody>
</tgroup>
</table>