Skip to content

Commit

Permalink
[PHP 8.3] Return type of ReflectionClass::getStaticProperties() is no…
Browse files Browse the repository at this point in the history
… longer nullable. (#2920)

Co-authored-by: Gina Peter Banyard <[email protected]>
  • Loading branch information
mumumu and Girgias authored Nov 14, 2023
1 parent de195fc commit dfdaa9a
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions reference/reflection/reflectionclass/getstaticproperties.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="ReflectionClass">
<modifier>public</modifier> <type class="union"><type>array</type><type>null</type></type><methodname>ReflectionClass::getStaticProperties</methodname>
<modifier>public</modifier> <type>array</type><methodname>ReflectionClass::getStaticProperties</methodname>
<void/>
</methodsynopsis>
<para>
Expand All @@ -26,10 +26,33 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
The static properties, as an <type>array</type>, or &null; on failure.
The static properties, as an <type>array</type>.
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.3.0</entry>
<entry>
The return type of <methodname>ReflectionClass::getStaticProperties</methodname>
has been changed to <type>array</type> from <literal>?array</literal>.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="seealso">
&reftitle.seealso;
<para>
Expand Down

0 comments on commit dfdaa9a

Please sign in to comment.