Damien Seguy's Avatar

Damien Seguy

@dseguy.bsky.social

Code quality fanatic, static analysis expert @exakat, elephpant breeder, husband, father, speaker!

651 Followers  |  231 Following  |  296 Posts  |  Joined: 17.10.2023  |  1.6622

Latest posts by dseguy.bsky.social on Bluesky

Now, we need more details. What, where, how?
Blog post?

09.02.2026 05:40 — 👍 0    🔁 0    💬 1    📌 0
Illustration de l'article

Illustration de l'article

L'EU Open Source Policy Summit 2026 se tiendra le 30 janvier à Bruxelles et en ligne pour échanger sur le rôle de l’Open Source dans la résilience numérique et la compétitivité européenne.

👉 data.europa.eu/en/ne...

26.01.2026 19:30 — 👍 4    🔁 4    💬 0    📌 0
<?php

$string = '123a';
$integer = -$string; // warning!

<?php $string = '123a'; $integer = -$string; // warning!

What if you want to convert a #PHP string to the opposite number ? Can you cast (int) and use minus?

Well, can you?

#phptip #phptrick

php-tips.readthedocs.io/en/latest/ti...

25.01.2026 15:36 — 👍 3    🔁 0    💬 1    📌 0
<?php

function foo() {
    print_r(func_get_args());
}

$array = [1,2,3];

// Not possible
// cannot use positional argument after unpacking
//foo(...$array, ...$array, 4);

foo(...$array, ...$array, ...[4]);

<?php function foo() { print_r(func_get_args()); } $array = [1,2,3]; // Not possible // cannot use positional argument after unpacking //foo(...$array, ...$array, 4); foo(...$array, ...$array, ...[4]);

So, ...[4] means unpacking a single value from a #PHP array.
This basically means reading the value itself.

Unless it is useful sometimes...

#phptip #phptrick

php-tips.readthedocs.io/en/latest/ti...

22.01.2026 07:28 — 👍 1    🔁 0    💬 0    📌 0
Post image

Closure, constant, #PHP 8.5, parenthesis, ants and cast: what could go wrong, right?

php-tips.readthedocs.io/en/latest/ti...

#phptip #phptrick

21.01.2026 10:18 — 👍 1    🔁 0    💬 0    📌 0
Post image

TIL that it is possible to use cast, like (int) or (string) with constants, since #PHP 8.5.

#phptip #phptrick

php-tips.readthedocs.io/en/latest/ti...

20.01.2026 18:00 — 👍 0    🔁 0    💬 0    📌 0
Preview
Meetup Janvier - Damien Seguy, Thu, Jan 29, 2026, 6:30 PM | Meetup Bonjour à tous ! Non vous ne rêvez pas ! Un événement tech aura bien lieu à Limoges ! C'est du last minutes mais nous profitons de la venue de Damien Seguy dans nos contr

Je serai de passage à l' @afup.org Limoges, jeudi 29 janvier 2026.

Rendez-vous chez OD&B, pour améliorer son code aujourd'hui et être prêt pour #PHP9 demain!

Les elePHPants sont les bienvenus!

www.meetup.com/afup-limoges...

19.01.2026 11:18 — 👍 0    🔁 0    💬 0    📌 0

Are telling everyone that I am more than 100 years old? Ssshhhhh!

16.01.2026 08:39 — 👍 0    🔁 0    💬 0    📌 0
Post image

The global keyword imports variables from the outside, and overwrites the local value. Beware, when using it.

#phptip #phptrick

php-tips.readthedocs.io/en/latest/ti...

15.01.2026 17:45 — 👍 0    🔁 0    💬 1    📌 0

Thanks for your work!

15.01.2026 14:07 — 👍 1    🔁 0    💬 0    📌 0
Post image

I just started the vote on my latest #PHP RFC to improve pack() and unpack() functions. It targets the next version, likely 8.6 as I'm writing this.

Fingers crossed! 🤞

wiki.php.net/rfc/pack-unp...

14.01.2026 15:09 — 👍 4    🔁 1    💬 1    📌 0
Merry Christmas! FrankenPHP 1.11: Hot Reload, Structured Logging, and More Speed - Kévin Dunglas Ho ho ho! 🎅 I’m thrilled to announce the immediate availability of FrankenPHP 1.11! We have a special gift for the PHP community to unwrap this Christmas Eve. This release is laser-focused on improvin...

Mea culpa, this is too early !

dunglas.dev/2025/12/merr...

14.01.2026 20:40 — 👍 0    🔁 0    💬 0    📌 0
Post image

ElePHPant alert : Le Monstre, from #frankenphp is available on the shop. Normal or big.

lemonstre.frankenphp.dev

14.01.2026 16:16 — 👍 0    🔁 0    💬 1    📌 0
Preview
Convert a string to integer with PHP - Exakat How to Convert a string to integer with PHP: since PHP 8.5, there is a warning for larger than integer strings, so how do you do it?

Converting a string to an int, without a warning.

A PHP 8.5 challenge.

#phptip #phptrick

www.exakat.io/convert-a-st...

14.01.2026 05:47 — 👍 1    🔁 0    💬 0    📌 0
Apéro PHP mercredi 17 décembre dès 18h chez Hopi

Apéro PHP mercredi 17 décembre dès 18h chez Hopi

Devs de Lille et des environs, rejoignez la communauté ce soir au Bar Hôpi pour un dernier verre avec l'AFUP Hauts-de-France avant la nouvelle année ! Il est encore temps de vous inscrire pour une soirée en bonne compagnie.
buff.ly/L7yJmWw

17.12.2025 10:16 — 👍 1    🔁 1    💬 0    📌 0
<?php

class X {
  // Some magic happen here
}

X::foo();
(new x)->foo();

<?php class X { // Some magic happen here } X::foo(); (new x)->foo();

Can a #PHP class have two methods with the same name?

Not with signature overloading, a classic feature, right?
But rather one method static and the other one non-static?

#phptip #phptrick

php-tips.readthedocs.io/en/latest/ti...

15.12.2025 10:22 — 👍 1    🔁 0    💬 0    📌 0
Post image

C'est le deuxième jour de @osxp2023.bsky.social et on parle de tout #php #drupal #firefox #commonvoire... et vous me trouverez sur le stand @drupal.fr @mozilla-fr.bsky.social au village associatif

11.12.2025 05:39 — 👍 2    🔁 3    💬 0    📌 0
<?php

echo intval('1AZ') .PHP_EOL; // 1
echo intval('1AZ', 11).PHP_EOL; // 21
echo intval('1AZ', 21).PHP_EOL; // 31
echo intval('1AZ', 36).PHP_EOL; // 1691
echo intval('1AZ', 37).PHP_EOL; // 0

echo intval( 123, 11).PHP_EOL; // 123
echo intval('123', 11).PHP_EOL; // 246

<?php echo intval('1AZ') .PHP_EOL; // 1 echo intval('1AZ', 11).PHP_EOL; // 21 echo intval('1AZ', 21).PHP_EOL; // 31 echo intval('1AZ', 36).PHP_EOL; // 1691 echo intval('1AZ', 37).PHP_EOL; // 0 echo intval( 123, 11).PHP_EOL; // 123 echo intval('123', 11).PHP_EOL; // 246

Do you think that intval() is a boring #PHP native function that turns string into integers?

Well, it does, but it is not boring. Far from it!

php-tips.readthedocs.io/en/latest/ti...

#phptip #phptrick

08.12.2025 20:43 — 👍 2    🔁 0    💬 0    📌 0
Preview
PHP Dev Squad | daily.dev Welcome to PHP Dev, a dedicated space for sharing knowledge about PHP and its ecosystem (only PHP directly related). Help us find good articles and blogposts and provide links. Upvote or downvote, aft...

Interesting #PHP news and articles on @dailydev.bsky.social : the PHPDev squad.

See you there!

app.daily.dev/squads/phpdev

08.12.2025 19:53 — 👍 2    🔁 1    💬 0    📌 0

I think that an article about 'How I would do it differently 10 years later' would be great 😀

07.12.2025 20:07 — 👍 0    🔁 0    💬 0    📌 0

Tu es un sandwich?

04.12.2025 05:37 — 👍 0    🔁 0    💬 0    📌 0
A PHP elephant, near the iconic Erasmus bridge, in Rotterdam

A PHP elephant, near the iconic Erasmus bridge, in Rotterdam

November 20th, 2025: PHP 8.5 arrives! 🐘

We’re throwing a release party at PHP Rotterdam, and you’re invited!

Expect PHPun, knowledge-sharing, and great company at Last Mile Solutions!

eventy.io/events/q8lmw...

#PHP #PHP85 #Community #Rotterdam #Developers

06.11.2025 06:05 — 👍 7    🔁 0    💬 0    📌 0

Cette année votre antenne préférée (nous 🤫) vous propose un AFUP Day à Bordeaux !

What's next?
Les CFPs sont ouverts jusqu'au 10 Novembre 2025 par ici 👉 event.afup.org
Et la billetterie est ouverte aussi par ici 👉 event.afup.org
⚠ Les tarifs "les yeux fermés" sont limités

See you there!

13.10.2025 15:33 — 👍 2    🔁 3    💬 0    📌 0

I have it, let me go home first and we sort out the next leg of the journey

29.10.2025 17:23 — 👍 3    🔁 0    💬 1    📌 0

Ok, seen how many?

29.10.2025 15:21 — 👍 0    🔁 0    💬 1    📌 0

I can get phpstan elephpants at #IPC Munich. Do you want one too?
Send me a DM to book one (30 e, delivery by CPS)
Deadline : Wednesday 29th October.

28.10.2025 17:09 — 👍 1    🔁 0    💬 1    📌 0
Video thumbnail

I had the opportunity to chat with @asgrim.dev yesterday about PHP Pie - the new installer for PHP extensions, intended to replace PECL.

Full interview dropping tomorrow.

22.10.2025 14:04 — 👍 6    🔁 4    💬 0    📌 0
Post image

It is easy to create a map from a list of object, using #PHP array_column() and the second argument null.

That null represents the whole object, and the third argument is the indexing key.

array_column($list_of_objects, null, 'id');

#phptip #phptrick

php-tips.readthedocs.io/en/latest/ti...

22.10.2025 12:47 — 👍 1    🔁 1    💬 0    📌 0
Preview
UHrBS - created on 3v4l.org View the output of this script on 3v4l.org: the online PHP shell with 250+ PHP versions

Indeed, clone happens AFTER the ->, so the code is cloning the result of the setter, which happens to be the original object itself.

A case of left associativity.

clone $object->property clones the property, not the object.
(clone $object)->property

Same for new

3v4l.org/UHrBS

07.10.2025 05:26 — 👍 0    🔁 0    💬 0    📌 0

Also, yes, some precedences are missing in that table. new and clone, for example.

06.10.2025 17:34 — 👍 0    🔁 0    💬 1    📌 0

@dseguy is following 20 prominent accounts