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.

96% 4%
35
55 yes
2 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

6

Generics are one of the most requested feature since PHP met the OOP paradigm and for me, this will step to set the boundaries to its OOP complete adherence.

We will be able to describe complex classes or dynamically typed ones, increase readability and move type hinting away from comments.

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