[DOC-CVS] [doc-en] master: Describe precedence for pipe and throw operators (#5083)

[email protected] (Vadim Dvorovenko via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
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 <[email protected]>

---------

Co-authored-by: Larry Garfield <[email protected]>

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>|&gt;</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>
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.