Newer versions of PHP have introduced some excellent language features that bring it closer to other modern programming languages. Despite all of that, there are definitely still things that I'd personally like to see added to PHP.

There are a few ways that generics can be implemented in programming languages - monomorphization, reification and type erasure.

Where the type string is any valid type you can add to a parameter, property or return type.

One of my goals with this parser is to fully support the PHP language but also add extensions behind feature flags to support things such as generics, type aliases, etc.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners