Doc #79303 [Opn->Csd]: Short arrow functions are not documented in "Anonymous functions"

From: Date: Sun, 26 Apr 2020 12:41:09 +0000
Subject: Doc #79303 [Opn->Csd]: Short arrow functions are not documented in "Anonymous functions"
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17521@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79303&edit=1 ID: 79303 Updated by: cmb@php.net Reported by: tandre@php.net Summary: Short arrow functions are not documented in "Anonymous functions" -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: 7.4.3 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2020-04-26 01:31:11] tandre@php.net The following pull request has been associated: Patch Name: Document PHP 7.4 arrow functions On GitHub: https://github.com/php/doc-en/pull/71 Patch: https://github.com/php/doc-en/pull/71.patch ------------------------------------------------------------------------ [2020-04-24 21:00:29] jessedickey at gmail dot com Yeah, arrow functions are completely missing from the PHP manual. It is briefly mentioned as a new feature of PHP 7.4 on php.net, but I don't consider explanations of features of a new version to be part of the actual manual. Is there some way to prevent this from happening again with other upcoming new features? It should not be possible to add new features without documenting how they work in the manual. People shouldn't have to look at the RFC to find out how it works after it is part of the language. ------------------------------------------------------------------------ [2020-02-24 17:00:27] tandre@php.net Description: ------------ https://www.php.net/manual/en/functions.anonymous.php doesn't seem to document https://wiki.php.net/rfc/arrow_functions_v2#proposal It was accepted in php 7.4. I don't see references to the syntax fn(parameter_list) => expr in that page, or similar issues in bugs.php.net Expected result: ---------------- Short arrow function syntax is documented on https://www.php.net/manual/en/functions.anonymous.php or a page in the "Functions" section of the language reference ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79303&edit=1

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