Ancestors

Toot

Written by dseguy on 2025-01-23 at 16:09

[#]PHP 8.4 is deprecating the usage of _ (underscore) as a class name. Anyone knows why?

The same name is available for functions, methods and constants, so, with named parameters, we can still write the beauty below.

[#]phptip #phptrick

https://php-tips.readthedocs.io/en/latest/tips/no_more_class__.html

=> View attached media

=> More informations about this toot | More toots from dseguy@phpc.social

Descendants

Written by Derick Rethans on 2025-01-23 at 16:21

@dseguy It's fine, you can still use ⸏.

=> More informations about this toot | More toots from derickr@phpc.social

Written by Gina Peter Banyard on 2025-01-23 at 16:30

@dseguy The motivation is to reserve the name for the wildcard pattern for pattern matching.

=> More informations about this toot | More toots from Girgias@phpc.social

Written by dseguy on 2025-01-23 at 16:46

@Girgias Ah! RFU! Thanks :)

=> More informations about this toot | More toots from dseguy@phpc.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113878537433613399
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
269.167111 milliseconds
Gemini-to-HTML Time
0.856589 milliseconds

This content has been proxied by September (ba2dc).