Doc #80801 [Opn->Csd]: [DE] Wrong "translation": As of PHP 8.0.0, passing optional arguments
| From: | ben dot schwarz at nimax dot de | Date: | Wed, 26 May 2021 13:47:50 +0000 |
| Subject: | Doc #80801 [Opn->Csd]: [DE] Wrong "translation": As of PHP 8.0.0, passing optional arguments | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18809@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80801&edit=1
ID: 80801
User updated by: ben dot schwarz at nimax dot de
Reported by: ben dot schwarz at nimax dot de
Summary: [DE] Wrong "translation": As of PHP 8.0.0, passing
optional arguments
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: *Languages/Translation
Operating System: -
PHP Version: 8.0.2
Block user comment: N
Private report: N
New Comment:
Great
Previous Comments:
------------------------------------------------------------------------
[2021-05-26 09:22:38] hallberg dot kim at gmail dot com
PR has been merged, this report can now be marked as closed.
------------------------------------------------------------------------
[2021-05-24 22:02:00] hallberg dot kim at gmail dot com
The following pull request has been associated:
Patch Name: [80801] Fix wrong translation
On GitHub: https://github.com/php/doc-de/pull/14
Patch: https://github.com/php/doc-de/pull/14.patch
------------------------------------------------------------------------
[2021-02-25 20:14:28] ben dot schwarz at nimax dot de
Description:
------------
https://www.php.net/manual/de/functions.arguments.php
As of PHP 8.0.0, passing optional arguments after mandatory arguments is deprecated. --> optional
and mandatory have to be changed. It was already corrected in the English version, but it seems the
German version shows an old copy of the English version.
Should be corrected and maybe translated to DE in that proccess.
---
From manual page: https://php.net/functions.arguments
---
Test script:
---------------
DE wrong:
As of PHP 8.0.0, passing optional arguments after mandatory arguments is deprecated. This can
generally be resolved by dropping the default value. One exception to this rule are arguments of the
form Type $param = null, where the null default makes the type implicitly nullable. This usage
remains allowed, though it is recommended to use an explicit nullable type instead.
Beispiel #3 Passing optional arguments after mandatory arguments
EN correct:
As of PHP 8.0.0, passing mandatory arguments after optional arguments is deprecated. This can
generally be resolved by dropping the default value. One exception to this rule are arguments of the
form Type $param = null, where the null default makes the type implicitly nullable. This usage
remains allowed, though it is recommended to use an explicit nullable type instead.
Example #3 Passing optional arguments after mandatory arguments
Expected result:
----------------
Don't know how the PHP doc works, but it would be much better, if the English original is taken
directly instead of creating a copy!
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80801&edit=1