

Updated the article, thanks! Wouldn’t really say that’s a stupid addon, though, the expected way to use readonly properties from other languages is assign the value directly (impossible in PHP) or inside the constructor (or other mechanisms that are only available during object creation, like C# initializers etc.).



I’d argue there’s no reason ever to actually use it in production. This is such a horrible hack that it has no place outside dicking around for fun.