Skip to content

Commit 4abb98d

Browse files
committed
Fix review comments
1 parent 2b240cd commit 4abb98d

File tree

6 files changed

+27
-16
lines changed

6 files changed

+27
-16
lines changed

reference/simplexml/simplexmlelement/current.xml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
<warning>
1616
<simpara>
17-
Before PHP 8.0, <methodname>SimpleXMLElement::current</methodname> was declared on
18-
<classname>SimpleXMLIterator</classname>, available as of PHP 5.
17+
Prior to PHP 8.0, <methodname>SimpleXMLElement::current</methodname> was only
18+
declared on the subclass <classname>SimpleXMLIterator</classname>.
1919
</simpara>
2020
</warning>
2121

@@ -32,11 +32,16 @@
3232
<refsect1 role="returnvalues">
3333
&reftitle.returnvalues;
3434
<para>
35-
Returns the current element as a <classname>SimpleXMLElement</classname> object, or an <classname>Error</classname>
36-
is thrown on failure.
35+
Returns the current element as a <classname>SimpleXMLElement</classname> object.
3736
</para>
3837
</refsect1>
3938

39+
<refsect1 role="errors">
40+
&reftitle.errors;
41+
<para>
42+
Throws an <classname>Error</classname> on failure.
43+
</para>
44+
</refsect1>
4045

4146
<refsect1 role="changelog">
4247
&reftitle.changelog;

reference/simplexml/simplexmlelement/getchildren.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
<warning>
1616
<simpara>
17-
Before PHP 8.0, <methodname>SimpleXMLElement::getChildren</methodname> was declared on
18-
<classname>SimpleXMLIterator</classname>, available as of PHP 5.
17+
Prior to PHP 8.0, <methodname>SimpleXMLElement::getChildren</methodname> was only
18+
declared on the subclass <classname>SimpleXMLIterator</classname>.
1919
</simpara>
2020
</warning>
2121

reference/simplexml/simplexmlelement/key.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
<warning>
1616
<simpara>
17-
Before PHP 8.0, <methodname>SimpleXMLElement::key</methodname> was declared on
18-
<classname>SimpleXMLIterator</classname>, available as of PHP 5.
17+
Prior to PHP 8.0, <methodname>SimpleXMLElement::key</methodname> was only
18+
declared on the subclass <classname>SimpleXMLIterator</classname>.
1919
</simpara>
2020
</warning>
2121

@@ -33,8 +33,14 @@
3333
<refsect1 role="returnvalues">
3434
&reftitle.returnvalues;
3535
<para>
36-
Returns the XML tag name of the element referenced by the current <classname>SimpleXMLElement</classname> object or
37-
an <classname>Error</classname> is thrown on failure.
36+
Returns the XML tag name of the element referenced by the current <classname>SimpleXMLElement</classname> object.
37+
</para>
38+
</refsect1>
39+
40+
<refsect1 role="errors">
41+
&reftitle.errors;
42+
<para>
43+
Throws an <classname>Error</classname> on failure.
3844
</para>
3945
</refsect1>
4046

reference/simplexml/simplexmlelement/next.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
<warning>
1616
<simpara>
17-
Before PHP 8.0, <methodname>SimpleXMLElement::next</methodname> was declared on
18-
<classname>SimpleXMLIterator</classname>, available as of PHP 5.
17+
Prior to PHP 8.0, <methodname>SimpleXMLElement::next</methodname> was only
18+
declared on the subclass <classname>SimpleXMLIterator</classname>.
1919
</simpara>
2020
</warning>
2121

reference/simplexml/simplexmlelement/rewind.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
<warning>
1616
<simpara>
17-
Before PHP 8.0, <methodname>SimpleXMLElement::rewind</methodname> was declared on
18-
<classname>SimpleXMLIterator</classname>, available as of PHP 5.
17+
Prior to PHP 8.0, <methodname>SimpleXMLElement::rewind</methodname> was only
18+
declared on the subclass <classname>SimpleXMLIterator</classname>.
1919
</simpara>
2020
</warning>
2121

reference/simplexml/simplexmlelement/valid.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
<warning>
1616
<simpara>
17-
Before PHP 8.0, <methodname>SimpleXMLElement::valid</methodname> was declared on
18-
<classname>SimpleXMLIterator</classname>, available as of PHP 5.
17+
Prior to PHP 8.0, <methodname>SimpleXMLElement::valid</methodname> was only
18+
declared on the subclass <classname>SimpleXMLIterator</classname>.
1919
</simpara>
2020
</warning>
2121

0 commit comments

Comments
 (0)