Skip to content

Commit 685ccd6

Browse files
committed
Add list of reserved classes to UPGRADING
1 parent 5c214fc commit 685ccd6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

UPGRADING

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,28 @@ Other language changes
375375
Note that this only applies to calls from an incompatible context. If class B
376376
extended from A the call would be allowed without any notices.
377377

378+
* It is no longer possible to use the following class, interface and trait names
379+
(case-insensitive):
380+
381+
bool
382+
int
383+
float
384+
string
385+
null
386+
false
387+
true
388+
389+
This applies to class/interface/trait declarations, class_alias() and use
390+
statements.
391+
392+
Furthermore the following class, interface and trait names are now reserved
393+
for future use, but do not yet throw an error when used:
394+
395+
resource
396+
object
397+
mixed
398+
numeric
399+
378400
* The yield language construct no longer requires parentheses when used in an
379401
expression context. It is now a right-associative operator with precedence
380402
between the "print" and "=>" operators. This can result in different behavior

0 commit comments

Comments
 (0)