@VotrubaT@peterfox I think it may start as a tool, and then moving it to the language will be easier. Many things have to be tested first, and that is easier as an external dev.
@alexdaubois So, get MUST return the same type as the property itself (makes sense), and the set() may accept another type, as long as it is contravariance, so wider. In practice, with scalars, you 'll need a union type to accept the property type (at least) and another one (and process it).
A patch I landed in #Symfony 8.1: a property's writable type can now differ from its readable type.
#PHP 8.4 property hooks let a set hook accept a wider type than you read back. I taught PropertyInfo to extract that setter type, so Serializer and Forms know what they're actually allowed to write.
Read string, write ?string. 👀
J ai fini de préparer mes présentations pour le forum AFUP 2026, à Paris, les 8 et 9 octobre.
Vous pouvez donc aller voter sur https://t.co/VzFWiQQTvp pour tous les sujets à couvrir.
Il reste du temps pour soumettre d'ici lundi soir ( 👉 https://t.co/S8x776pzMU).
@dhicking@laravelphp@LaravelLiveUK I just can't take this crap anymore. https://t.co/uFlXOx8uzn The reason people outside of PHP think PHP may be dead is: anytime they see a PHP dev post about PHP they start by debating if PHP is dead or not. This isn't helping, you're actively stopping devs from adopting PHP 😢
Attention future PHP Ambassadors! You can now join this Special Interest Group if you want to help improve the perception of PHP in spaces outside our bubble. Help us help the community tell the real story of modern PHP development! #php#phpc Read more: https://t.co/85t4jkAjv3
I have a question for package maintainers! I'm making a guide on this, so I need some real opinions.
What is your best tip for marketing your open source packages?