wiki.php.net/rfc/readonly_prop :
"There is currently no way to make a property readable to everyone and writeable only to the containing object, with PHP's visibility specifiers allowing all or nothing: a scope can either both read and write, or do neither. While __get and __set exist, these do not actually allow control of the same property, merely only exposing a separate property, and they are only usable for undeclared properties, which cannot be reflected and are not performant."

it works with a setter
and so does __set()
but only when property is private or protected

anyway.... simply do not understand why readonly can not be initialized directly

Show thread

wondering whether there is a reason for readonly properties in can not be initialized from global scope

anyone got a clue ?

the ext-php-rs project, used to build PHP extensions in Rust, is looking for new maintainers


oh so nice...
@phpugly now comes with personalized tutorials by @shocm
he may not have made it as a release manager
but he does a hell of a job explaining things, for someone of his age

here is how he manages his dotfiles wih a Stow


RT @jensimmons
Web Push is coming to Safari 16 on macOS Ventura. It sends notifications even if Safari is closed. Is built with the same web technologies as other browsers. Doesn’t require an Apple Developer Program membership. And is coming to iOS and iPadOS next year.


⚡️@ApiPlatform natively exposes a streaming API thanks to @MercureRealTime. @s0yuka at @web2day

If you use Symfony or are interested in doing so, the official Symfony Framework Best Practices are available here. symfony.com/doc/current/best_p

just discovered that you can run
composer update _package_
with a dependency that is not directly referenced in your composer.json file

is sooooo bloody good

been playin with @jetbrains @phpstorm's new UI (in beta)

let's cut the bullshit...
it is simply E-X-C-E-L-L-E-N-T !


LazyDocker does look interesting even if I’m quite happy with my current workflow


I really like what @Crell wrote here:

espcially like the Error marker suggestion that would be handled by ?? and ?->

can we hope an RFC for something like that and/or a ?

hey guys...
I see quite of you guys are crossposting on Mastodon & Twitter...
have you automated that somehow or are you manually posting on both platforms ?

It's been awhile but we have people back at the table again. Hoping to be more of a regular thing schedule now. This month I am joined by Sara Golemon (@pollita), @JoePFerguson@twitter.com, and @ramsey@twitter.com and we talk about the current state of PHP.


Today is International Day Against Homophobia, Biphobia, Intersexism & Transphobia

Show older
PHP Community on Mastodon

Open source. Open community. We are dedicated to building and enriching the PHP community.