Author: Nikita Popov (nikic) Date: 2021-11-25T20:22:07+01:00 Commit: https://github.com/php/web-php/commit/213a4fafd56620a4efebddaa5bf246afb0758782 Raw diff: https://github.com/php/web-php/commit/213a4fafd56620a4efebddaa5bf246afb0758782.diff
Tweak intersection types description Changed paths: M releases/8.1/languages/en.php M releases/8.1/release.inc Diff: diff --git a/releases/8.1/languages/en.php b/releases/8.1/languages/en.php index 01ba53075..9f62cbf49 100644 --- a/releases/8.1/languages/en.php +++ b/releases/8.1/languages/en.php @@ -21,7 +21,7 @@ <p>This effectively makes it possible to use <strong>nested attributes</strong>.</p>', 'pure_intersection_types_title' => 'Pure Intersection Types', - 'pure_intersection_types_content' => '<p>Use intersection types when you need to require a value to satisfy multiple type constraints at the same time.</p> + 'pure_intersection_types_content' => '<p>Use intersection types when a value needs to satisfy multiple type constraints at the same time.</p> <p>It is not currently possible to mix intersection and union types together such as <code>A&B|C</code>.</p>', 'never_return_type_title' => 'Never return type', @@ -88,4 +88,4 @@ The <a href="/manual/en/migration81.php">migration guide</a> is available in the PHP Manual. Please consult it for a detailed list of new features and backward-incompatible changes. </p>', -]; \ No newline at end of file +]; diff --git a/releases/8.1/release.inc b/releases/8.1/release.inc index ced5a4e6c..8e00fcbdc 100644 --- a/releases/8.1/release.inc +++ b/releases/8.1/release.inc @@ -283,7 +283,7 @@ function count_and_iterate(Iterator $value) { throw new TypeError('value must be Countable'); } - foreach($value as $val) { + foreach ($value as $val) { echo $val; } @@ -301,7 +301,7 @@ PHP <?php highlight_php_trimmed( <<<'PHP' function count_and_iterate(Iterator&Countable $value) { - foreach($value as $val) { + foreach ($value as $val) { echo $val; } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php