+
+ 8.3.0
+
+ Support for class, interface, and trait constant typing has been added.
+
+ 8.2.0
@@ -128,10 +134,10 @@
- Base Types Usage Notes
+ Atomic Types Usage Notes
- Base types have straight forward behaviour with some minor caveats which
+ Atomic types have straight forward behaviour with some minor caveats which
are described in this section.
@@ -265,7 +271,7 @@ Stack trace:
Union types
- It is not possible to combine the two literal types false
+ It is not possible to combine the two value types false
and true together in a union type.
Use bool instead.
diff --git a/language/types/type-system.xml b/language/types/type-system.xml
index 3ee3aed5b607..1bde216bec7b 100644
--- a/language/types/type-system.xml
+++ b/language/types/type-system.xml
@@ -9,15 +9,15 @@
- PHP's type system supports various base types that can be composed together
+ PHP's type system supports various atomic types that can be composed together
to create more complex types. Some of these types can be written as
type declarations.
-
- Base types
+
+ Atomic types
- Some base types are built-in types which are tightly integrated with the
+ Some atomic types are built-in types which are tightly integrated with the
language and cannot be reproduced with user defined types.
@@ -74,7 +74,7 @@
- Literal types
+ Value types
@@ -111,7 +111,7 @@
Composite types
- It is possible to combine simple types into composite types.
+ It is possible to combine multiple atomic types into composite types.
PHP allows types to be combined in the following ways:
diff --git a/language/types/literal.xml b/language/types/value.xml
similarity index 77%
rename from language/types/literal.xml
rename to language/types/value.xml
index c858ccc15f64..643bbe12525d 100644
--- a/language/types/literal.xml
+++ b/language/types/value.xml
@@ -1,10 +1,10 @@
-
- Literal types
+
+ Value types
- Literal types are those which not only check the type of a value but also
- the value itself. PHP has support for two literal types:
+ Value types are those which not only check the type of a value but also
+ the value itself. PHP has support for two value types:
false as of PHP 8.0.0, and true
as of PHP 8.2.0.
@@ -18,7 +18,7 @@
- It is not possible to define custom literal types. Consider using an
+ It is not possible to define custom value types. Consider using an
enumerations instead.