php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #80801 [DE] Wrong "translation": As of PHP 8.0.0, passing optional arguments
Submitted: 2021-02-25 20:14 UTC Modified: 2021-05-26 13:47 UTC
From: ben dot schwarz at nimax dot de Assigned:
Status: Closed Package: *Languages/Translation
PHP Version: 8.0.2 OS: -
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ben dot schwarz at nimax dot de
New email:
PHP Version: OS:

 

 [2021-02-25 20:14 UTC] 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!


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-26 09:14 UTC] cmb@php.net
-Summary: Wrong "translation" in German doc: As of PHP 8.0.0, passing optional arguments +Summary: [DE] Wrong "translation": As of PHP 8.0.0, passing optional arguments
 [2021-05-24 22:02 UTC] 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-05-26 09:22 UTC] hallberg dot kim at gmail dot com
PR has been merged, this report can now be marked as closed.
 [2021-05-26 13:47 UTC] ben dot schwarz at nimax dot de
-Status: Open +Status: Closed
 [2021-05-26 13:47 UTC] ben dot schwarz at nimax dot de
Great
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 07:01:27 2024 UTC