Voting is now open on the PHP Bound-Erased Generic Types RFC (2026-06-14 to 2026-06-28), requiring a 2/3 majority. The RFC proposes erased generics with variance markers, with a secondary vote on syntax (+T/-T vs in T/out T). Key community figures are divided: Rowan Tommins voted No, arguing native syntax should come with native enforcement and that erased generics weaken PHP's type guarantees. Larry Garfield urged delaying the vote, warning that a failed generics vote would be terrible PR for PHP, and recommending targeting PHP 9.0 (2027) with fully enforced/monomorphized generics instead. Levi Morrison voted Yes, viewing it as a useful stepping stone toward reified generics. Rob Landers highlighted that with erased generics, type parameters reduce to 'mixed' at runtime, meaning generic type annotations provide no actual enforcement.

17m read timeFrom externals.io
Post cover image
66 Impressions