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

Young elephpants after a day @confooca.bsky.social : tired, excited and happy. Hoe many can you recognize? (One response each)

Nouvel elephpant @sentry.io to be raffled @confooca.bsky.social . Visit them in the lobby!

@dunglas.dev, out of the plane for one hour, starting a présentation on @api-platform.com .

One more elephpant appeared @confooca.bsky.social : the @datadoghq.com elephpant. And the conference just started!

#PHP final keyword does not apply to parameters. This means that a final property cannot be a promoted property: both declarations are mutually exclusive. #phptip #phptrick php-tips.readthedocs.io/en/latest/ti...

There is a #PHP value, which is not even equal to itself. ($a === $a) is false! If you don't know about it, here is a tip : it is not a number. #phptip #phptrick php-tips.readthedocs.io/en/latest/ti...

#PHP named parameters are constrained by the variable name format: foo(a: 0) will be matched to $a. It is possible to skip the parameter existence validation by using a variadic paramter, which collect all leftover arguments. #phptip #phptrick php-tips.readthedocs.io/en/latest/ti...

Leaving for @confooca.bsky.social today, to be sure not to miss the Canadian event of IT in Montreal. I'll give 2 talks, about #PHP changed behaviors and Naming strategies in the Code. And I'll bring my PHPamily of elephpants and some upcoming projects to share! www.confoo.ca/en/2025

func_get_args() and variadic parameters are providing some similar feature of arbitrary number of arguments. Yet, don't use them at the same time, as variadic parameters are skipped in func_get_args() returned value. #phptip #phptrick php-tips.readthedocs.io/en/latest/ti...

🔗 Importing 1.7 billion rows of CSV data from Stripe with PHP

#PHP, is it a fatale error, compile error, true, false or something else?

Using ... with an array in a function call + uses the string keys as names when available + plain ignores the key when it is an integer Very different behavior between named and positional arguments. #phptip #phptrick php-tips.readthedocs.io/en/latest/ti...

Names are not enforced between interfaces, classes and children. It is a best practice to keep the parameters consistent between class generations, to avoid headaches when using named parameters. #phptip #phptrick php-tips.readthedocs.io/en/latest/ti...

I've just released 🥧 PIE 0.6.0! This release adds commands to manage repositories, allowing maintainers/users to test with local paths, add VCS repositories, and Private Packagist! github.com/php/pie/rele... #phpc #phpfoundation #phppie @thephpf.bsky.social

I need some examples of awesome PHP projects for an upcoming talk. Things that are pushing the boundaries / a little unexpected from PHP. Things that solve interesting problems. Things that have impressive scale. #php

#PHP 8.4 added chaining new without parenthesis: accessing a property or a method, directly at instantiation time. Which means, the object can also be invoked immediately! new $x()(); Next, 3 sets of parenthesis! #phptip #phptrick php-tips.readthedocs.io/en/latest/ti...

I'm working on the #PHP dictionary, which collect definitions for every day words in the PHP culture. handler, haystack, lexical variable, relaxed syntax, truthy or shallow clones often need some explanations. Missing some words? Ping me ! php-dictionary.readthedocs.io/en/latest/

The two lines of code look very similar, except for the new operator. And they actually behave very differently. Can you guess what is the difference of treatment? #phptip #phptrick php-tips.readthedocs.io/en/latest/ti...

#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 php-tips.readthedocs.io/en/latest/ti...

Help me piece together a complete history of the PHP programming language and its community! github.com/phpcommunity... #PHP #PHPC #30YearsOfPHP #PHPHistory

We've just created a "PHP World Starter kit" featuring some nice people to follow. Please share to help us reach more people, and let us know who else we should include: go.bsky.app/DA6c1gw

Why we should avoid to use pseudo-types with #PHP: f2r.github.io/en/stop-usin... (Version française: f2r.github.io/fr/arretez-l...) Thanks to @dseguy.bsky.social and @chinaski.bsky.social for your support

When using dynamic code with #PHP, the code must provide a string for the method or property name. Although, for methods, a non-string yields a Fatal error for properties, a non-string yields a silent type cast to string. That helps. #phptip #phptrick php-tips.readthedocs.io/en/latest/ti...

First, it looks like a 'static' typed property, until I read the default value. Secondly, static properties may be inherited, or be distinct from the parent: redefine it in the child, and that segregate them. 😮 #phptip #phptrick php-tips.readthedocs.io/en/latest/ti...

The most common tools and services used in #PHP open source projects. VCS, CI, SCA, Unit Tests, builders, IDE... 2025 updated list. www.exakat.io/en/common-se...

Anyone wants to update #PHP docs to have examples such as /^(?i)php[78]/? This is probably keeping more people that we'd like using older versions of the engine. www.php.net/manual/en/pc...

#PHP trick question, for the Friday developer: where do you put the parenthesis in a new call: + before the class name + on the class name + after the class name + nowhere + somewhere else + all of the above #phptip #phptrick php-tips.readthedocs.io/en/latest/ti...

"Cannot call constructor" is a real #PHP error message. And there is also "Must call the parent constructor". To call or not to call the constructor: definitely a question, and may be, an improvement for #PHP 8.5. #phptip #phptrick www.exakat.io/en/php-const...

Nous dévoilons demain les 3 programmes de l'AFUP Day 2025 à Lille, Lyon et Poitiers le 16 mai ! Qui est impatient·e de découvrir les sélections de chaque ville ?

I already knew that #PHP is + a dentist in The Hague, + a Banana plantation in Cameroon, + an airport in North Dakota, + a French Rear-admiral, ... but TIL it is also a hairdresser in slovakia. And you? What is your own special #PHP meaning? www.exakat.io/en/what-does...