# Partial Function Application is coming in PHP 8.6

DevFeed: [Partial Function Application is coming in PHP 8.6](<https://devfeed.tech/articles/partial-function-application-is-coming-in-php-8-6-20473.md>)

Original publisher: [Read original article](<https://www.amitmerchant.com/partial-function-application-php-86/>)

Author: Amit Merchant

Published: 2025-12-05T00:00:00Z

Content type: article

Language: en

Sources: [Amit Merchant](<https://devfeed.tech/sources/amit-merchant.md>)

Topics: [PHP](<https://devfeed.tech/topics/php.md>), [callback](<https://devfeed.tech/topics/callback.md>), [function](<https://devfeed.tech/topics/function.md>), [Parameter](<https://devfeed.tech/topics/parameter.md>), [Boilerplate](<https://devfeed.tech/topics/boilerplate.md>), [Server](<https://devfeed.tech/topics/server.md>)

Tags: [arguments](<https://devfeed.tech/tags/arguments.md>), [array](<https://devfeed.tech/tags/array.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [boilerplate](<https://devfeed.tech/tags/boilerplate.md>), [callback](<https://devfeed.tech/tags/callback.md>), [closure](<https://devfeed.tech/tags/closure.md>), [code](<https://devfeed.tech/tags/code.md>), [factory](<https://devfeed.tech/tags/factory.md>), [function](<https://devfeed.tech/tags/function.md>), [header](<https://devfeed.tech/tags/header.md>), [http](<https://devfeed.tech/tags/http.md>), [operator](<https://devfeed.tech/tags/operator.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [php](<https://devfeed.tech/tags/php.md>), [php-8-6](<https://devfeed.tech/tags/php-8-6.md>), [static](<https://devfeed.tech/tags/static.md>), [types](<https://devfeed.tech/tags/types.md>)

## AI overview

PHP 8.6 Partial Function Application lets you call a function with some arguments supplied and placeholders for the rest, producing a Closure whose parameters correspond to the missing arguments. The excerpt describes placeholders for one argument or for forwarding remaining arguments, and says multiple holes, named arguments, variadic functions, pipe-friendly use, and thunk functions are supported. Its practical example preconfigures an Authorization header name and value, leaving a request array to be supplied later. The feature is presented as a way to avoid boilerplate arrow functions when configuring callbacks or rearranging arguments. Constructors cannot be partially applied; the excerpt suggests static methods or factory functions instead. The supplied text is an excerpt, so it does not establish full syntax or behavior.

## Source excerpt

Ever reach for a simple callback and end up writing a tiny novella--an arrow function stuffed with types, reordered parameters, and boilerplate just to pass one value through?