Skip to content
Merged
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions language/variables.xml
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,11 @@ function foo(){
This means that static variables in methods now behave the same way as static properties.
</para>

<simpara>
As of PHP 8.3.0, static variables can be initialized with arbitrary expressions.
This means that method calls, for example, can be used to initialize static variables.
</simpara>

<example>
<title>Usage of static Variables in Inherited Methods</title>
<programlisting role="php">
Expand Down