Author: Theodore Brown (theodorejb) Committer: GitHub (web-flow) Pusher: saundefined Date: 2024-11-21T15:59:14+03:00
Commit: https://github.com/php/web-php/commit/95a8b86343a5e6f470eee6aea295e268563f02cd Raw diff: https://github.com/php/web-php/commit/95a8b86343a5e6f470eee6aea295e268563f02cd.diff Improve description for new BcMath\Number object (#1148) Simplified and corrected wording - BCMath isn't only for float numbers. Changed paths: M releases/8.4/languages/en.php M releases/8.4/release.inc Diff: diff --git a/releases/8.4/languages/en.php b/releases/8.4/languages/en.php index 84c7c63e1a..2e82fb34f2 100644 --- a/releases/8.4/languages/en.php +++ b/releases/8.4/languages/en.php @@ -16,7 +16,7 @@ 'dom_additions_html5_title' => 'New ext-dom features and HTML5 support', 'dom_additions_html5_description' => '<p>New DOM API that includes standards-compliant support for parsing HTML5 documents, fixes several long-standing compliance bugs in the behavior of the DOM functionality, and adds several functions to make working with documents more convenient.</p><p>The new DOM API is available within the <code>Dom</code> namespace. Documents using the new DOM API can be created using the <code>Dom\HTMLDocument</code> and <code>Dom\XMLDocument</code> classes.</p>', 'bcmath_title' => 'Object API for BCMath', - 'bcmath_description' => '<p>BCMath allows you to work with arbitrary precision float numbers in PHP. With this release, you can benefit from object-oriented style and operator overloading to use BCMath numbers.</p><p>It means, you can now use standard operators with <code>BcMath\Number</code> objects, which also support all <code>bc*</code> functions.</p><p>These objects are immutable and implement the <code>Stringable</code> interface, so they can be used in string contexts like <code>echo $num</code>.</p>', + 'bcmath_description' => '<p>New <code>BcMath\Number</code> object enables object-oriented usage and standard mathematical operators when working with arbitrary precision numbers.</p><p>These objects are immutable and implement the <code>Stringable</code> interface, so they can be used in string contexts like <code>echo $num</code>.</p>', 'new_array_find_title' => 'New <code>array_*()</code> functions', 'new_array_find_description' => 'New functions <a href="/manual/en/function.array-find.php"><code>array_find()</code></a>, <a href="/manual/en/function.array-find-key.php"><code>array_find_key()</code></a>, <a href="/manual/en/function.array-any.php"><code>array_any()</code></a>, and <a href="/manual/en/function.array-all.php"><code>array_all()</code></a> are available.', 'pdo_driver_specific_parsers_title' => 'PDO Driver specific SQL parsers', diff --git a/releases/8.4/release.inc b/releases/8.4/release.inc index b88fd6f007..e5dba4b47b 100644 --- a/releases/8.4/release.inc +++ b/releases/8.4/release.inc @@ -362,7 +362,7 @@ PHP <div class="php8-code phpcode"> <?php highlight_php_trimmed( <<<'PHP' -use BCMath\Number; +use BcMath\Number; $num1 = new Number('0.12345'); $num2 = new Number('2');