The Daily Commit · Section Edition Front Page PHP AI Dev EN DE FR ES

The Php Times

RFC Watch — Ecosystem

Pushback on RFC to Deprecate Fuzzy Type Casts Ahead of PHP 8.6


On the PHP internals list, Robert Chapin objects to the RFC proposing deprecation of fuzzy type casts, warning of a backward compatibility break comparable to the PHP 8.0 equality operator change.

PHP INTERNALS ([RFC]/[VOTE]), August 20, 2026 curated by Sönke

He asks that the stalled proposal be retargeted away from PHP 8.6.

An RFC on the PHP wiki proposes deprecating fuzzy type casts and allowing Stringable in strict mode. It still lists PHP 8.6 as its target version and shows no new discussion links since January.

On the internals mailing list, Robert Chapin voiced strong opposition. He sided with earlier remarks by Rowan Tommins, arguing that casting values like (int) $_GET['count'] to obtain a specific type with a default value is a decades-old codified behavior, not a problematic one. Removing it, he wrote, would be a backward compatibility break on the scale of the equality operator changes shipped in PHP 8.0.

Chapin also backed Alexandre Daubois, who had argued the changes should never have been proposed for PHP 8.6 in the first place. Chapin concluded that PHP is not ready for this change and asked whether the RFC could be updated to a later target version or otherwise marked as needing more work.

Read the original source ↗

Rate this article: 0

Readers’ Forum

No contributions yet — open the debate.

← Ecosystem — Page B1

"All the Code That's Fit to Ship" · The Daily Commit · Screen edition · Imprint · Privacy Policy