diff --git a/language/control-structures/switch.xml b/language/control-structures/switch.xml index a3c8ff44c1..3ffa3a6098 100644 --- a/language/control-structures/switch.xml +++ b/language/control-structures/switch.xml @@ -211,7 +211,7 @@ switch ($target) { - For more complex comparisons, the value true may be used as the switch value. + For more complex comparisons, the value &true; may be used as the switch value. Or, alternatively, if-else blocks instead of switch. diff --git a/language/enumerations.xml b/language/enumerations.xml index 557e45f078..d96bab567e 100644 --- a/language/enumerations.xml +++ b/language/enumerations.xml @@ -678,7 +678,7 @@ print serialize(Suit::Hearts); On deserialization, if an enum and case cannot be found to match a serialized - value a warning will be issued and false returned. + value a warning will be issued and &false; returned. If a Pure Enum is serialized to JSON, an error will be thrown. If a Backed Enum diff --git a/language/types/array.xml b/language/types/array.xml index d8f93d10a2..8a6d96aaaf 100644 --- a/language/types/array.xml +++ b/language/types/array.xml @@ -102,8 +102,8 @@ $array = [ Bools are cast to ints, too, i.e. the key - true will actually be stored under 1 - and the key false under 0. + &true; will actually be stored under 1 + and the key &false; under 0. diff --git a/language/types/declarations.xml b/language/types/declarations.xml index beac582d22..1624e4c90e 100644 --- a/language/types/declarations.xml +++ b/language/types/declarations.xml @@ -260,18 +260,18 @@ Stack trace: Union types - It is not possible to combine the two literal types false - and true together in a union type. + It is not possible to combine the two literal types false + and true together in a union type. Use bool instead. - Prior to PHP 8.2.0, as false and null + Prior to PHP 8.2.0, as false and null could not be used as standalone types, a union type comprised of only these types was not permitted. This comprises the following types: - false, false|null, + false, false|null, and ?false. diff --git a/language/types/literal.xml b/language/types/literal.xml index 608d4462bb..830017293f 100644 --- a/language/types/literal.xml +++ b/language/types/literal.xml @@ -5,13 +5,13 @@ Literal types are type which not only check the type of a value but also the value itself. PHP has support for two literal types: - false as of PHP 8.0.0, and true + false as of PHP 8.0.0, and true as of PHP 8.2.0. - Prior to PHP 8.2.0 the false type could only be used as part of a + Prior to PHP 8.2.0 the false type could only be used as part of a union type. diff --git a/reference/luasandbox/luasandbox/callfunction.xml b/reference/luasandbox/luasandbox/callfunction.xml index 7f29f0c22b..58f15ecf8f 100644 --- a/reference/luasandbox/luasandbox/callfunction.xml +++ b/reference/luasandbox/luasandbox/callfunction.xml @@ -56,7 +56,7 @@ &reftitle.returnvalues; - Returns an array of values returned by the Lua function, which may be empty, or false in case of failure. + Returns an array of values returned by the Lua function, which may be empty, &return.falseforfailure;. diff --git a/reference/luasandbox/luasandbox/setcpulimit.xml b/reference/luasandbox/luasandbox/setcpulimit.xml index a7b0355985..1352e08dd9 100644 --- a/reference/luasandbox/luasandbox/setcpulimit.xml +++ b/reference/luasandbox/luasandbox/setcpulimit.xml @@ -44,7 +44,7 @@ limit - Limit as a float in seconds, or false for no limit. + Limit as a float in seconds, or &false; for no limit. diff --git a/reference/luasandbox/luasandboxfunction/call.xml b/reference/luasandbox/luasandboxfunction/call.xml index 6e52a20779..01729f6cf3 100644 --- a/reference/luasandbox/luasandboxfunction/call.xml +++ b/reference/luasandbox/luasandboxfunction/call.xml @@ -18,7 +18,7 @@ Errors considered to be the fault of the PHP code will result in the - function returning false and E_WARNING + function returning &false; and E_WARNING being raised, for example, a resource type being used as an argument. Lua errors will result in a LuaSandboxRuntimeError exception being thrown. @@ -133,7 +133,7 @@ &reftitle.returnvalues; Returns an array of values returned by the function, which may be empty, - or false on error. + &return.falseforfailure;. diff --git a/reference/misc/functions/define.xml b/reference/misc/functions/define.xml index 3b6e35ec36..b010792e86 100644 --- a/reference/misc/functions/define.xml +++ b/reference/misc/functions/define.xml @@ -67,8 +67,8 @@ Defining case-insensitive constants is deprecated as of PHP 7.3.0. - As of PHP 8.0.0, only false is an acceptable value, passing - true will produce a warning. + As of PHP 8.0.0, only &false; is an acceptable value, passing + &true; will produce a warning. diff --git a/reference/mongodb/architecture.xml b/reference/mongodb/architecture.xml index 1ad2249338..adf62a2733 100644 --- a/reference/mongodb/architecture.xml +++ b/reference/mongodb/architecture.xml @@ -784,7 +784,7 @@ class UpperClass implements MongoDB\BSON\Persistable { The MongoDB\BSON\Unserializable::bsonUnserialize method of YourClass, OurClass, TheirClass iterate over the array and set the properties without modifications. It also sets - the $unserialized property to true: + the $unserialized property to &true;: enable - true to turn implicit flushing on, false otherwise. + &true; to turn implicit flushing on, &false; otherwise. diff --git a/reference/ps/functions/ps-show-boxed.xml b/reference/ps/functions/ps-show-boxed.xml index 0b0b91d202..ed7887b696 100644 --- a/reference/ps/functions/ps-show-boxed.xml +++ b/reference/ps/functions/ps-show-boxed.xml @@ -140,8 +140,8 @@ linebreak (parameter) - Set to true if you want a carriage return to start a new line instead - of treating it as a space. Defaults to false. + Set to &true; if you want a carriage return to start a new line instead + of treating it as a space. Defaults to &false;. @@ -149,8 +149,8 @@ parbreak (parameter) - Set to true if you want a carriage return on a single line to start a - new paragraph instead of treating it as a space. Defaults to true. + Set to &true; if you want a carriage return on a single line to start a + new paragraph instead of treating it as a space. Defaults to &true;. @@ -158,9 +158,9 @@ hyphenation (parameter) - Set to true in order to turn hyphenation on. This requires a + Set to &true; in order to turn hyphenation on. This requires a dictionary to be set with the parameter hyphendict. Defaults to - false. + &false;. diff --git a/reference/sem/functions/sem-acquire.xml b/reference/sem/functions/sem-acquire.xml index ed6c2b62ca..d776a11b39 100644 --- a/reference/sem/functions/sem-acquire.xml +++ b/reference/sem/functions/sem-acquire.xml @@ -44,8 +44,8 @@ Specifies if the process shouldn't wait for the semaphore to be acquired. - If set to true, the call will return - false immediately if a semaphore cannot be immediately + If set to &true;, the call will return + &false; immediately if a semaphore cannot be immediately acquired.