[web-php] master: Fix BCMath release announcement example (#1230)
| From: | Philip Olson via GitHub | Date: | Fri, 21 Feb 2025 12:52:33 +0000 |
| Subject: | [web-php] master: Fix BCMath release announcement example (#1230) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-32716@lists.php.net to get a copy of this message | ||
Author: Philip Olson (philip)
Committer: GitHub (web-flow)
Pusher: saundefined
Date: 2025-02-21T15:44:36+03:00
Commit: https://github.com/php/web-php/commit/05e7b274a4bdb162246331752185d190f88627ed
Raw diff: https://github.com/php/web-php/commit/05e7b274a4bdb162246331752185d190f88627ed.diff
Fix BCMath release announcement example (#1230)
Fixes issue https://github.com/php/doc-en/issues/4466
Changed paths:
M releases/8.4/release.inc
Diff:
diff --git a/releases/8.4/release.inc b/releases/8.4/release.inc
index 0cbcd0962b..9c93005f7b 100644
--- a/releases/8.4/release.inc
+++ b/releases/8.4/release.inc
@@ -346,7 +346,7 @@ PHP
<?php highlight_php_trimmed(
<<<'PHP'
$num1 = '0.12345';
-$num2 = 2;
+$num2 = '2';
$result = bcadd($num1, $num2, 5);
echo $result; // '2.12345'