Skip to content

Commit a742846

Browse files
vadimonusCrell
andauthored
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>
1 parent 1526b45 commit a742846

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

language/operators/precedence.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@
144144
<link linkend="language.operators.string">string</link> (as of PHP 8.0.0)
145145
</entry>
146146
</row>
147+
<row>
148+
<entry>left</entry>
149+
<entry><literal>|&gt;</literal></entry>
150+
<entry>
151+
<link linkend="language.operators.functional">pipe</link>
152+
</entry>
153+
</row>
147154
<row>
148155
<entry>non-associative</entry>
149156
<entry>
@@ -282,6 +289,13 @@
282289
<link linkend="language.operators.logical">logical</link>
283290
</entry>
284291
</row>
292+
<row>
293+
<entry>(n/a)</entry>
294+
<entry><literal>throw</literal></entry>
295+
<entry>
296+
<link linkend="language.exceptions">throw</link>
297+
</entry>
298+
</row>
285299
</tbody>
286300
</tgroup>
287301
</table>

0 commit comments

Comments
 (0)