[PHP-DEV] Class Extension

[email protected] (Holly Schilling) Wed, 8 Jul 2026 05:08:42 +0000
Newsgroups php.internals
Message-ID <DS4PR20MB9945336F4CC85EBE22A4CDB762B2FF2@DS4PR20MB994533.namprd20.prod.outlook.com>
Following the discussion in Discord yesterday, I started working on the feasibility of implementing class extensions. I believe I’ve proven out the concept and viability of it in a 2-phase approach using an extension syntax similar to that of Swift.

Before I go into much more detail, what is the general interest in adding this to the language?