Doc #80801 [NEW]: Wrong "translation" in German doc: As of PHP 8.0.0, passing optional arguments

From: Date: Thu, 25 Feb 2021 20:14:28 +0000
Subject: Doc #80801 [NEW]: Wrong "translation" in German doc: As of PHP 8.0.0, passing optional arguments
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18600@lists.php.net to get a copy of this message
From:             ben dot schwarz at nimax dot de
Operating system: -
PHP version:      8.0.2
Package:          *Languages/Translation
Bug Type:         Documentation Problem
Bug description:Wrong "translation" in German doc: As of PHP 8.0.0, passing optional
arguments 

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 bug report at https://bugs.php.net/bug.php?id=80801&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80801&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80801&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80801&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80801&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80801&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80801&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80801&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80801&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80801&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80801&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80801&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80801&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80801&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80801&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80801&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80801&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80801&r=mysqlcfg


Thread (4 messages)

« previous php.doc.bugs (#18600) next »