[DOC-CVS] [doc-en] master: Change 'Old adult' to 'Adult' in match.xml (#5525)

[email protected] (Avery Brooks via GitHub) Wed, 29 Apr 2026 22:15:16 +0000
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Avery Brooks (sprky0)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2026-04-30T00:15:13+02:00

Commit: https://github.com/php/doc-en/commit/840bdb9be79855ee4b2cc66c22cf3e88b781398a
Raw diff: https://github.com/php/doc-en/commit/840bdb9be79855ee4b2cc66c22cf3e88b781398a.diff

Change 'Old adult' to 'Adult' in match.xml (#5525)

Removes lightly irritating ageist language from match syntax documentation.

Changed paths:
  M  language/control-structures/match.xml


Diff:

diff --git a/language/control-structures/match.xml b/language/control-structures/match.xml
index f74bf7064644..cefc327413ea 100644
--- a/language/control-structures/match.xml
+++ b/language/control-structures/match.xml
@@ -65,7 +65,7 @@ $output = match (true) {
     $age < 2 => "Baby",
     $age < 13 => "Child",
     $age <= 19 => "Teenager",
-    $age >= 40 => "Old adult",
+    $age >= 40 => "Adult",
     $age > 19 => "Young adult",
 };