Profile avatar
dseguy.bsky.social
Code quality fanatic, static analysis expert @exakat, elephpant breeder, husband, father, speaker!
194 posts 594 followers 206 following
Prolific Poster
Active Commenter
comment in response to post
It is probably more frequent to train AI on such code than on good code.
comment in response to post
comment in response to post
J habite au 3ème étage, je ne pense pas sortir aujourd’hui. Par contre, demain, je me trouve un parc Sepaq, ça va être magique
comment in response to post
Not a validation, not a check of existence with ::class. It works with '1'::class but not with 1::class. It works with object::class, float::class, but not with array::class or callable::class. What else? #phptip #phptrick
comment in response to post
It also keep the provided arguments as entries in the array, while the variadic collect them in an array. Quite a weird beast. 3v4l.org/64gDR
comment in response to post
m.youtube.com/watch?v=wkDv... Ça, c est la joke culturelle du -1 😇
comment in response to post
-21 mercredi et -1 jeudi. Bienvenue au pays!
comment in response to post
Yup : #phptip #phptrick php-tips.readthedocs.io/en/latest/ti...
comment in response to post
Mixing positional and named parameter is the advanced part of this #PHP tip, indeed. Can you illustrate the "arguments that would not be allowed as variable name" ?
comment in response to post
Tu as tout à fait raison, Frédéric!
comment in response to post
For classes, it is the last child definition which has priority: this is quite straightforward. For interfaces, it is wild. And it is quite frequent, since projects older than PHP 8.0 didn't have any incentive to align the names: parameter was internal naming.
comment in response to post
php.ini, probably not. Attributes would be the 'in-code' configuration, but not applicable to arrays, and it is trivial with objects. Could object save the day ?
comment in response to post
The repository is here: github.com/exakat/php-d... I'll make a new pass at the contribution section.
comment in response to post
It is there, though not directly under its own name, rather 'scope resolution operator'. I may need an 'alias' notion. Let me think about it. Thanks for the inspiration.
comment in response to post
I use CITE for that, and classlike is indeed missing. Thanks :) php-dictionary.readthedocs.io/en/latest/di...
comment in response to post
It is there, though not directly under its own name, rather 'scope resolution operator'. I may need an 'alias' notion. Let me think about it. Thanks for the inspiration.
comment in response to post
This is too serious an answer for a Friday evening... 😇
comment in response to post
I can do Thursdays, if that’s help.
comment in response to post
I like this one too, and I'm always surprised to hear about it, when in Paris. Though it doesn't fit the list of PHPs : it is, in fact, APHP.
comment in response to post
There you go : 3v4l.org/HAPDR