dseguy
dseguy@phpc.social
<p>Static code analysis maestro <span class="h-card" translate="no"><a href="https://phpc.social/@Exakat" class="u-url mention">@<span>Exakat</span></a></span> <a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="tag">#<span>PHP</span></a> expert elePHPant breeder. <a href="https://linktr.ee/exakat" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="">linktr.ee/exakat</span><span class="invisible"></span></a></p>
Posts
-
View post
Vale reads the comments in your #PHP code and apply checks: grammar, spelling and style, to make sure they are consistent and expressive. A tool for the most human part of the code. Install, review and run. https://www.exakat.io/vale-reviews-your-comments-in-the-code/
-
View post
#PHP lazy class constant is the default behavior when creating constant with expressions, rather than literal values. This is both clever and a hidden trap. So, let&#39;s review that! https://www.exakat.io/lazy-class-constants-in-php/
-
View post
🐘 PHPenomenal 8.6 is on! Write a &quot;useful&quot; #PHP app that actually uses PHP 8.6&#39;s new features: partial function application, clamp(), Time\Duration, readonly property defaults, the SortDirection enum, and more. One rule: share your source code by Nov 19, 2026, when PHP 8.6 drops. Best entries wins! 🏆 Join in → open an issue on the repo. #PHP #PHP86 #PHPenomenal https://www.exakat.io/phpenomenal-8-6-a-challenge-to-for-phps-next-release/
-
View post
array_is_list() does check the index since 0, so even if it is numerically indexed, it may fail the function. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/array_is_list.html
-
View post
It relies on OOM (out of memory), so I&#39;d start with that. A crash segfault. I don&#39;t think there are published indicators of compromises yet, besides some IP addresses.
-
View post
Here is a classic situation, where injecting an array of arrays leads to the infamous list of &#39;Array, Array, Array...&#39; What #PHP tool do you use to guard against this warning? is_array() is not sufficient, and the type is already there. There is nothing native available. https://3v4l.org/Srifn#v
-
View post
You are living in a bad neighboorhood (in terms of network...) Is that better ?
-
View post
So, it's too late for #PHP 8.6, but can I ask for composable first class callable of the second order for #PHP 8.7? I tried even with |> operator, it fails. Is the only solution here to do a closure? Try it yourself : https://3v4l.org/eUjJ4#v8.5.10 Damned, already talking about #php 8.7?
-
View post
The #PHP SIG onboarding group is working of an introduction book for our favorite language. The current draft 0.4.0 is available here, with numerous feedbacks, smoother progression and various fixes. If you are starting with #PHP, read it and bring me what can make it even more awesome. DM are open! https://thephpbook.readthedocs.io/en/latest/title-page.html
-
View post
@vohanj@phpc.social I did leave some bait in this picture.
-
View post
Pop quizz #PHP on Friday evening: How can you remove an argument between the parent class and the child class? Is that an impossible task? #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/less_arguments.html
-
View post
#PHP delivers
-
View post
From #mastodon you can hop to #lemmy and get daily news about #PHP https://lemmy.world/c/php It&#39;s not much, but it&#39;s honest work.
-
View post
#PHP 8.4 introduced array_find() to look for a value in an array, and also, its cousin, array_find_key(), which returns the key where to find that value. The second got less attention, but is arguably more useful. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tipSection.html
-
View post
So, it seems that it is possible to paint oneself in a corner and write an unreachable method. How would you call A::foo() in this code below? Come on, #PHP, there must be something here. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/unreachable_method.html
-
View post
A manually curated list of multi-language applications that also supports #PHP https://www.exakat.io/also-php-a-curated-watchlist-for-the-php-ecosystem/
-
View post
@afup il y a deux ans, j ai eu cet elePHPant blanc durant le forum. Je cherche l auteur de cette merveille, qui a maintenant une admiratrice et un petit frère! @Coriography
-
View post
#PHP&#39;s NAN is 0 as an integer, &#39;NAN&#39; as a string and not comparable with itself. Also, there are now warning when using them, so no one can get hurt by this. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/compare_nan.html
-
View post
#[ReturnTypeWillChange] works on native #PHP methods and also on custom ones. #phptrick #phptip https://php-tips.readthedocs.io/en/latest/tips/returntypewillchange_for_all.html
-
View post
preg_split() splits #PHP strings with regexes, captures the separators and can handle an empty regex. You don&#39;t need that everyday, but when you do, #PHP has it! #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/preg_split.html
-
View post
Strategies to rename a parameter in a #PHP method https://www.exakat.io/renaming-parameters-in-a-method/
-
View post
#PHP defined() in action: there are many aspects when checking for a constant existence. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/defined.html
-
View post
New word: zombie closure That is when you put $this in a static closure, you can run the #PHP code but you can&#39;t call it. Just a reminder about static arrow functions. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/static_arrow_function.html
-
View post
It is Friday, so why not cram as many #PHP operators in one single operation, and make it work? Look at this beauty! Could you make it run? #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/allDereferencements.html
-
View post
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! https://eventy.io/events/q8lmw0v4 #PHP #PHP85 #Community #Rotterdam #Developers
-
View post
Would it be cool to have a #PHP ::parent operator, like we have the ::class operator Well, turns out we can. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/parent_operator.html
-
View post
#PHP puzzle of the day: can you make Chidren::foo() call GrandParents::foo() ? Think about it, and then, click below for the solution(s). #phptip #phptrick https://www.exakat.io/calling-all-ancestors/
-
View post
I don’t use ai generated image but when i do, it shows #dpc 😂
-
View post
Quite a nice take on the current situation. https://blog.lmorchard.com/2026/03/11/grief-and-the-ai-split/
-
View post
Enumerations are backed by strings, they work with in_array(), but not with array_unique() Well, at least, not directly. Also, did you know Enum::cases() ? #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/array_unique_and_enum.html