[DOC-CVS] [doc-en] master: Fix sample code in migration85.new-features (#5024)

[email protected] (Takuya Aramaki via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Takuya Aramaki (takaram)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2025-12-01T12:04:32+01:00

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

Fix sample code in migration85.new-features (#5024)

Changed paths:
  M  appendices/migration85/new-features.xml


Diff:

diff --git a/appendices/migration85/new-features.xml b/appendices/migration85/new-features.xml
index 5f2424d70af2..9acd268ef54b 100644
--- a/appendices/migration85/new-features.xml
+++ b/appendices/migration85/new-features.xml
@@ -68,7 +68,7 @@ print $result . PHP_EOL;  // Prints "11"
 
 #[\NoDiscard]
 function concat(string $a, string $b): string {
-     return a + b;
+     return $a . $b;
 }
 
 // Warning: The return value of function concat() should either be used or
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.