What Laravel teams should test before upgrading to PHP 8.6

PHP 8.6 brings partial function application and a duration type. Use a staging upgrade to check your dependencies, extensions and long-running workers.
Start with the deployment, then adopt the syntax
PHP 8.6 shipped on 19 November 2026 with partial function application, a Time Duration class for elapsed time, and a polling API intended for event-loop libraries.
An application upgrade and a language-feature rollout can happen in separate deploys. I recommend proving that the current application works under the new runtime before introducing syntax that the old runtime cannot parse. That gives you a simpler rollback while you are still testing the runtime change.
Where partial application fits
Suppose an export job calls a formatter with a currency, locale and amount. Today a closure can capture the currency and locale and accept the amount later. Partial function application lets the formatter bind those first two arguments up front and return a closure that accepts the remaining amount. The useful change is at the call site, where the fixed inputs and the variable input become visible together.
Try this first on a callback with straightforward arguments. A closure that validates an amount, adds context to an exception or coordinates several calls already has a job of its own. Keep that behavior explicit. For durations, use elapsed time when measuring work and wall-clock timestamps when recording when an event happened.
Make the staging check cover each PHP process
Start a CI job on PHP 8.6 using the same lockfile and extensions as the deployment. Composer's platform checks can help surface dependency and extension constraints, but the CI process, web runtime and queue workers can use different installations. Inventory those processes and confirm the actual PHP version and required extensions inside each deployed runtime.
Exercise a representative export end to end. Submit it through the web app, let a worker consume it, verify the result and force one retry. Restart the workers during the staging deploy and check that newly started workers report the expected version. Laravel documents that queue workers are long-lived and need to be restarted during deployment to pick up application changes.
Include the scheduler or any standalone PHP command that accesses the same data. For a rollback rehearsal, redeploy the previous image while the application still uses the old syntax and verify a queued job can cross the deployment boundary. Check payloads that were already waiting when the upgrade started.
What this check establishes
The export is a hypothetical example. It cannot establish compatibility for your lockfile, extensions, job payloads or hosting image. Use the PHP migration guide to pick tests for the parts of the language your application actually uses.

