Skip to content

Commit 8a6397d

Browse files
authored
[PHP 8.4] Add new constants and tokens from the tokenizer (#3936)
1 parent 02e46bd commit 8a6397d

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

appendices/migration84/constants.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,21 @@
286286
</simplelist>
287287
</sect2>
288288

289+
<sect2 xml:id="migration84.constants.tokenizer">
290+
<title>Tokenizer</title>
291+
<simplelist>
292+
<member>
293+
<constant>T_PUBLIC_SET</constant>
294+
</member>
295+
<member>
296+
<constant>T_PROTECTED_SET</constant>
297+
</member>
298+
<member>
299+
<constant>T_PRIVATE_SET</constant>
300+
</member>
301+
</simplelist>
302+
</sect2>
303+
289304
<sect2 xml:id="migration84.constants.xml">
290305
<title>XML</title>
291306

appendices/tokens.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,20 +708,41 @@ defined('T_FN') || define('T_FN', 10001);
708708
<link linkend="language.oop5">classes and objects</link>
709709
</entry>
710710
</row>
711+
<row xml:id="constant.t-private-set">
712+
<entry><constant>T_PRIVATE_SET</constant></entry>
713+
<entry>private(set)</entry>
714+
<entry>
715+
property hooks (available as of PHP 8.4.0)
716+
</entry>
717+
</row>
711718
<row xml:id="constant.t-protected">
712719
<entry><constant>T_PROTECTED</constant></entry>
713720
<entry>protected</entry>
714721
<entry>
715722
<link linkend="language.oop5">classes and objects</link>
716723
</entry>
717724
</row>
725+
<row xml:id="constant.t-protected-set">
726+
<entry><constant>T_PROTECTED_SET</constant></entry>
727+
<entry>protected(set)</entry>
728+
<entry>
729+
property hooks (available as of PHP 8.4.0)
730+
</entry>
731+
</row>
718732
<row xml:id="constant.t-public">
719733
<entry><constant>T_PUBLIC</constant></entry>
720734
<entry>public</entry>
721735
<entry>
722736
<link linkend="language.oop5">classes and objects</link>
723737
</entry>
724738
</row>
739+
<row xml:id="constant.t-public-set">
740+
<entry><constant>T_PUBLIC_SET</constant></entry>
741+
<entry>public(set)</entry>
742+
<entry>
743+
property hooks (available as of PHP 8.4.0)
744+
</entry>
745+
</row>
725746
<row xml:id="constant.t-readonly">
726747
<entry><constant>T_READONLY</constant></entry>
727748
<entry>readonly</entry>

0 commit comments

Comments
 (0)