Doc #79303 [Com]: Short arrow functions are not documented in "Anonymous functions"

From: Date: Fri, 24 Apr 2020 21:00:29 +0000
Subject: Doc #79303 [Com]: Short arrow functions are not documented in "Anonymous functions"
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17514@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 Comment by: jessedickey at gmail dot com Reported by: tandre@php.net Summary: Short arrow functions are not documented in "Anonymous functions" Status: Open Type: Documentation Problem Package: Documentation problem PHP Version: 7.4.3 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 (#17514) next »