# [RFC] Partial Function Application: Handling of Optional Parameters

- Thread: https://externals.io/message/130682
- Original archive: https://news-web.php.net/php.internals/130682
- Started by tim@bastelstu.be on 2026-04-21T17:52:06+00:00
- Messages: 2
- RFC: Partial Function Application: Handling of Optional Parameters (Implemented (PHP 8.6)) — https://externals.io/rfc/partial_function_application_optional_placeholder.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #130682 — tim@bastelstu.be — 2026-04-21T17:52:06+00:00

URL: https://externals.io/message/130682#130682

Hi

as part of the design for a “PFA for $this” RFC, Arnaud and I came 
across one issue in the original design of PFA that makes it hard to do 
the “PFA for $this” follow-up in a way that does not violate user 
expectations. Specifically the handling of “optional parameters”. With 
the support of Larry as one of the original authors of the PFA RFC, we 
would like to propose an amendment to the PFA RFC that is unlikely to 
affect real-world use-cases, but that will enable these follow-ups and 
that will result in a more predictable behavior overall.

Please find all details in the RFC at: 
https://wiki.php.net/rfc/partial_function_application_optional_placeholder

Unless significant discussion happens, I expect the RFC to go to vote in 
2 weeks, so that it can be incorporated in the PFA implementation right 
away.

Best regards
Tim Düsterhus

---

## #130761 — tim@bastelstu.be — 2026-05-04T07:12:30+00:00

URL: https://externals.io/message/130682#130761 · In reply to: #130682

Hi

Am 2026-04-21 19:52, schrieb Tim Düsterhus:
> Please find all details in the RFC at: 
> https://wiki.php.net/rfc/partial_function_application_optional_placeholder
> 
> Unless significant discussion happens, I expect the RFC to go to vote 
> in 2 weeks, so that it can be incorporated in the PFA implementation 
> right away.

Tomorrow very exciting two weeks of discussion will have passed. I plan 
to open voting later this week.

Best regards
Tim Düsterhus
