PHP 8.6 Readonly Properties Can Have Default Values
The Readonly Property Defaults RFC passed 24 to 0, so PHP 8.6 lets you declare a default on a readonly property instead of setting it in the constructor.
Eric L. Barnes
PHP News is the daily source for developers building with PHP — a PHP blog covering practical tutorials, release notes, package discoveries, and the community reporting that helps you ship better applications.
The Readonly Property Defaults RFC passed 24 to 0, so PHP 8.6 lets you declare a default on a readonly property instead of setting it in the constructor.
Eric L. Barnes
Time\Duration is merged for PHP 8.6. Build durations are in seconds, milliseconds, or hours; add, divide, and compare them.
Eric L. Barnes
WordPress 7.0.3 patches CVE-2026-64638, a pre-auth XSS to RCE chain that begins with a parser disagreement between PHP's strip_tags() and KSES.
Eric L. Barnes
Twig 4.0 makes macro arguments required unless they have a default, adds explicit variadic syntax, and requires parentheses when you call one.
Eric L. Barnes
WordPress 7.1 RC1 landed with 145 fixes since Beta 4, a new Icons API, and shareable revisions. Here's how to test your plugins before the final release.
Eric L. Barnes
Artisan Build's weekly php-internals video covers the 35-ballot PHP 8.6 deprecation vote closing August 10, with list() still short of two-thirds.
Eric L. Barnes
The International PHP Conference runs October 26 to 30, 2026 in Munich with eight tracks, two workshop days, and early bird pricing until August 20.
Eric L. Barnes
Brent Roose's PHP 8.6 rundown walks through partial function application, the new polling API, clamp(), the Duration class, and 20+ deprecations.
Eric L. Barnes
The PHP Foundation launched a Special Interest Group to fix where new PHP developers get stuck, with a kickoff meeting on August 24 at 13:00 UTC.
Eric L. Barnes
The PHP Foundation's Governing Board unanimously approved Anne McCarthy, Architect and Open Source Director at Automattic, as a sponsor representative.
Eric L. Barnes
PHPUnit TIA ports Pest's Test Impact Analysis to PHPUnit 13, skipping tests unaffected by your changes to cut local suite runs down to seconds.
Eric L. Barnes
PHP 8.5.9 is a security release patching a Postgres SQL injection in pg_insert(), a BCMath out-of-bounds write, and Phar and GD CVEs.
Eric L. Barnes
Every post lands in one of these, so start wherever your work does.