[doc-en] master: Fix sample code in migration85.new-features (#5024)
| From: | Takuya Aramaki via GitHub | Date: | Mon, 01 Dec 2025 11:04:34 +0000 |
| Subject: | [doc-en] master: Fix sample code in migration85.new-features (#5024) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-22891@lists.php.net to get a copy of this message | ||
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