[PHP 8.6] Partial Function Application
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
issue 中没有确定文件、测试或入口点。首先阅读链接的 PHP RFC,并检查 NetBeans 当前如何处理 PHP 的语言版本功能;完成标准是支持 PHP 8.6 的部分函数应用语法且不引入回归。
由索引模型根据 Issue 内容生成。
描述
Description
Support for the upcoming version 8.6 of PHP.
(Scheduled to be released in late November 2026)
Use case/motivation
The PHP RFC: Partial Function Application (v2) introduces a native syntax to pre-fill some arguments of a function call while leaving others open for later.
The syntax uses a ? placeholder for a single open argument (e.g., str_replace('hello', 'hi', ?)) and ... for remaining variadic arguments, completely removing the need to write verbose, custom anonymous arrow functions.
Calling a function this way returns a standard Closure object that only expects the remaining missing arguments.
This feature drastically cleans up functional-style programming, making it highly readable when using inline callbacks or chaining operations with the pipe operator.
Related issues
No response
Are you willing to submit a pull request?
No
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 939
- 平均合并
- 5 天 12 小时
- 30 天内合并 PR
- 23
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/netbeans 的其他 Issue
-
Contribution welcome kind:feature Platform
难度 2/5 1-3 小时 新手友好度 72/100
apache/netbeans#9614 · 2 条评论 ·
维护者通常 1 天内回复
-
kind:bug LSP needs:triage
难度 2/5 1-3 小时 新手友好度 78/100
apache/netbeans#9548 · 1 条评论 ·
维护者通常 1 天内回复
-
Editor Java kind:feature needs:triage
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
kind:bug needs:triage os:linux os:macos Platform UI
难度 1/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
kind:bug needs:triage
难度 1/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
portfolio-performance/portfolio#6119 ·
维护者通常 8 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
jenkinsci/ec2-plugin#2041 ·
-
L: github:actions L: php:composer
难度 2/5 1-3 小时 新手友好度 88/100
dependabot/dependabot-core#16493 ·
维护者通常 1 天内回复
-
SHOW EDIT of a subclass for an object of its superclass: the form fails to open with AssertionError未关闭
难度 2/5 1-3 小时 新手友好度 74/100
-
难度 1/5 1 小时以内 新手友好度 72/100