Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions appendices/migration70/incompatible/error-handling.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
<classname>Error</classname> exceptions).
</para>

<para>
A fuller description of how errors operate in PHP 7 can be found
<link linkend="language.errors.php7">on the PHP 7 errors page</link>. This
<simpara>
A more complete description of how errors operate in PHP can be found
<link linkend="language.error-handling.throwable">on the Throwable errors page</link>. This
migration guide will merely enumerate the changes that affect backward
compatibility.
</para>
</simpara>

<sect3 xml:id="migration70.incompatible.error-handling.set-exception-handler">
<title>
Expand Down
8 changes: 4 additions & 4 deletions appendices/reserved.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<link linkend="control-structures.switch">case</link>
</entry>
<entry>
<link linkend="language.exceptions">catch</link>
<link linkend="control-structures.catch">catch</link>
</entry>
<entry>
<link linkend="language.oop5.basic.class">class</link>
Expand Down Expand Up @@ -134,7 +134,7 @@
<link linkend="language.oop5.final">final</link>
</entry>
<entry>
<link linkend="language.exceptions">finally</link>
<link linkend="control-structures.finally">finally</link>
</entry>
<entry>
<link linkend="functions.arrow">fn</link> (as of PHP 7.4)
Expand Down Expand Up @@ -236,13 +236,13 @@
<link linkend="control-structures.switch">switch</link>
</entry>
<entry>
<link linkend="language.exceptions">throw</link>
<link linkend="control-structures.throw">throw</link>
</entry>
<entry>
<link linkend="language.oop5.traits">trait</link>
</entry>
<entry>
<link linkend="language.exceptions">try</link>
<link linkend="control-structures.try">try</link>
</entry>
<entry>
<function>unset</function>
Expand Down
8 changes: 4 additions & 4 deletions appendices/tokens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ defined('T_FN') || define('T_FN', 10001);
(<type>int</type>)
</entry>
<entry>catch</entry>
<entry><xref linkend="language.exceptions"/></entry>
<entry><xref linkend="control-structures.catch"/></entry>
</row>
<row xml:id="constant.t-class">
<entry>
Expand Down Expand Up @@ -557,7 +557,7 @@ defined('T_FN') || define('T_FN', 10001);
(<type>int</type>)
</entry>
<entry>finally</entry>
<entry><xref linkend="language.exceptions"/></entry>
<entry><xref linkend="control-structures.finally"/></entry>
</row>
<row xml:id="constant.t-fn">
<entry>
Expand Down Expand Up @@ -1255,7 +1255,7 @@ defined('T_FN') || define('T_FN', 10001);
(<type>int</type>)
</entry>
<entry>throw</entry>
<entry><xref linkend="language.exceptions"/></entry>
<entry><xref linkend="control-structures.throw"/></entry>
</row>
<row xml:id="constant.t-trait">
<entry>
Expand All @@ -1279,7 +1279,7 @@ defined('T_FN') || define('T_FN', 10001);
(<type>int</type>)
</entry>
<entry>try</entry>
<entry><xref linkend="language.exceptions"/></entry>
<entry><xref linkend="control-structures.try"/></entry>
</row>
<row xml:id="constant.t-unset">
<entry>
Expand Down
8 changes: 4 additions & 4 deletions entities/entities.php.ent
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ There are a few <filename> tossed near and there.

<entity name="callback.cmp"><methodsynopsis><type>int</type><methodname><replaceable>callback</replaceable></methodname><methodparam><type>mixed</type><parameter>a</parameter></methodparam><methodparam><type>mixed</type><parameter>b</parameter></methodparam></methodsynopsis></entity>

<entity name="catch"><link linkend="language.exceptions.catch"><literal>catch</literal></link></entity>
<entity name="catch"><link linkend="control-structures.catch"><literal>catch</literal></link></entity>

<entity name="const"><link linkend="language.constants.syntax"><literal>const</literal></link></entity>

<entity name="declare"><link linkend="control-structures.declare"><literal>declare</literal></link></entity>

<entity name="false"><constant>false</constant></entity>

<entity name="finally"><link linkend="language.exceptions.finally"><literal>finally</literal></link></entity>
<entity name="finally"><link linkend="control-structures.finally"><literal>finally</literal></link></entity>

<entity name="float"><type>float</type></entity>

Expand Down Expand Up @@ -71,11 +71,11 @@ There are a few <filename> tossed near and there.

<entity name="string"><type>string</type></entity>

<entity name="throw"><link linkend="language.exceptions"><literal>throw</literal></link></entity>
<entity name="throw"><link linkend="control-structures.throw"><literal>throw</literal></link></entity>

<entity name="true"><constant>true</constant></entity>

<entity name="try"><link linkend="language.exceptions"><literal>try</literal></link></entity>
<entity name="try"><link linkend="control-structures.try"><literal>try</literal></link></entity>

<entity name="use.namespace"><link linkend="language.namespaces.importing"><literal>use</literal></link></entity>

Expand Down
3 changes: 3 additions & 0 deletions language/control-structures.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
&language.control-structures.require-once;
&language.control-structures.include-once;
&language.control-structures.goto;
&language.control-structures.throw;
&language.control-structures.try-catch;
&language.control-structures.finally;

</chapter>

Expand Down
Loading
Loading