File tree Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,13 @@ var_dump(B::counter()); // int(4), previously int(2)
69
69
</para >
70
70
</sect3 >
71
71
72
+ <sect3 xml : id =" migration81.incompatible.core.new-keywords" >
73
+ <title >New Keywords</title >
74
+ <para >
75
+ <literal >readonly</literal > is a keyword now. However, it still may be used
76
+ as function name.
77
+ </para >
78
+ </sect3 >
72
79
</sect2 >
73
80
74
81
<sect2 xml : id =" migration81.incompatible.resource2object" >
Original file line number Diff line number Diff line change 215
215
</entry >
216
216
</row >
217
217
<row >
218
+ <entry >
219
+ <link linkend =" language.oop5.properties.readonly-properties" >readonly</link > (as of PHP 8.1.0) *
220
+ </entry >
218
221
<entry >
219
222
<function >require</function >
220
223
</entry >
227
230
<entry >
228
231
<link linkend =" language.variables.scope" >static</link >
229
232
</entry >
233
+ </row >
234
+ <row >
230
235
<entry >
231
236
<link linkend =" control-structures.switch" >switch</link >
232
237
</entry >
233
- </row >
234
- <row >
235
238
<entry >
236
239
<link linkend =" language.exceptions" >throw</link >
237
240
</entry >
244
247
<entry >
245
248
<function >unset</function >
246
249
</entry >
250
+ </row >
251
+ <row >
247
252
<entry >
248
253
<link linkend =" language.namespaces" >use</link >
249
254
</entry >
250
- </row >
251
- <row >
252
255
<entry >
253
256
<link linkend =" language.oop5.properties" >var</link >
254
257
</entry >
261
264
<entry >
262
265
<link linkend =" language.generators" >yield</link >
263
266
</entry >
267
+ </row >
268
+ <row >
264
269
<entry >
265
270
<link linkend =" control-structures.yield.from" >yield from</link >
266
271
</entry >
272
+ <entry ></entry >
273
+ <entry ></entry >
274
+ <entry ></entry >
275
+ <entry ></entry >
267
276
</row >
268
277
</tbody >
269
278
</tgroup >
270
279
</table >
271
-
280
+
281
+ <simpara >
282
+ * <literal >readonly</literal > may be used as function name.
283
+ </simpara >
284
+
272
285
<table >
273
286
<title >Compile-time constants</title >
274
287
<tgroup cols =" 5" >
You can’t perform that action at this time.
0 commit comments