Open RFCs

Bound-Erased Generic Types

This RFC adds generic type syntax to PHP. Classes, interfaces, traits, functions, methods, closures, and arrow functions can declare type parameters; those parameters carry bounds, defaults, and variance markers; type arguments may be supplied at use sites and at call sites via turbofish.

100% 0%
18
31 yes
0 no
Asymmetric Visibility v2

A new syntax for declaring the “set” operation visibility of an object property

34% 66%
23
21 yes
40 no
new MyClass()->method() without parentheses

Chain method on newly created objects without parentheses

86% 14%
55
96 yes
16 no

Argument of the Day

8

I've been writing about this for years. If we ever want generics in PHP, this is the way.

Share:
Read the RFC: Bound-Erased Generic Types Contributor brent avatar
brent
voted yes
RSS Feed Contribute Watch on YouTube Our License
© 2026 RFC Vote. This project is open source. Contribute and collaborate with us!