Loïc Faugeron
banner
loicfaugeron.bsky.social
Loïc Faugeron
@loicfaugeron.bsky.social
Test. Code. Refactor. Repeat!
Pinned
Published: My dotfiles gnugat.github.io/2025/08/27/m...

I've set up that git repo back in 2014, and it's been extremely useful to me for the past 11 years. The biggest changes happened earlier this year (2025) as I suddenly needed macOS compatible settings, but other than that it's still the same.
Reposted by Loïc Faugeron
Symfony 7.4 brings a cleaner way to define console inputs: command arguments and options can now be mapped directly to PHP classes and enums using attributes like `#[MapInput]`, `#[Argument]`, and `#[Option]`.

Type-safe, structured input for your CLI commands 🎉🍕🥓
#Symfony #PHP #DX
November 9, 2025 at 12:48 PM
Ooooh Claude... At least you're trying.

"✳ For BisouLand, I think the loveliest port convention would be based on 21 - 'Bisou' has 5 letters, and 2+1+5+0+something = love?"
November 7, 2025 at 9:29 PM
Thanks to @Pierstoval for sharing this amazing resource to search and compare PHP CS Fixer rules

mlocati.github.io/php-cs-fixer...
PHP-CS-Fixer Configurator
mlocati.github.io
November 6, 2025 at 11:26 AM
Tuesday Confession: I love @secondej.bsky.social talks.

Full of positive energy, the storytelling is compelling and in service of the topic. And I always learn a thing of two!
November 4, 2025 at 12:07 PM
Reposted by Loïc Faugeron
🚀 New in Symfony 7.4: Improved Invokable Commands
➡️ https://symfony.com/blog/new-in-symfony-7-4-improved-invokable-commands
November 4, 2025 at 8:09 AM
Reposted by Loïc Faugeron
🚀 New in Symfony 7.4: Better Exceptions in Terminal
➡️ https://symfony.com/blog/new-in-symfony-7-4-better-exceptions-in-terminal
October 28, 2025 at 8:15 AM
Reposted by Loïc Faugeron
What if #PHP had nullable and non-nullable cast operators?

That's what we would like to propose for PHP 8.6 👀

wiki.php.net/rfc/nullable...
October 27, 2025 at 8:05 AM
Reposted by Loïc Faugeron
As of #Symfony 7.4, functional tests’ error rendering will finally get you straight to the point with a beautiful, concise output 🥳 Especially useful when doing large refactorings that make dozens of such tests fail while progressing.

Before/After 👇
October 25, 2025 at 12:14 PM
Sometimes, we make typos in the namespace, classname, filename, folder names... Here's how to setup a way:

* to check for it: composer dump-autoload --optimize --strict-psr --strict-ambiguous
* to fix it: swiss-knife namespace-to-psr-4 src --namespace-root 'App\\'

gist.github.com/gnugat/437d6...
October 24, 2025 at 9:24 AM
Published: eXtreme Legacy 5: PDO

Migrating from the deprecated MySQL extension to modern PDO, and the security of prepared statements.

gnugat.github.io/2025/10/22/x...
October 23, 2025 at 9:09 AM
The London School of Pomodoro method is a variant from Great Britain where one makes a tea pot, drinks tea while coding, inevitably takes small (bathroom) breaks, until the teapot is empty which is when a longer break is required (to replenish it).

🫖
October 22, 2025 at 1:11 PM
Reposted by Loïc Faugeron
Voici mon retour sur la conférence de @dunglas.dev consacré à Franken PHP lors du forum PHP de l’ @afup.org
October 10, 2025 at 3:13 PM
Reposted by Loïc Faugeron
PIE (the new extension installer in PHP) really is a game changer. I mean so is the entire PHP Foundation by extension (pun intended).
October 1, 2025 at 1:12 PM
Published: eXtreme Legacy 4: Coding Standards

gnugat.github.io/2025/10/01/x...
October 1, 2025 at 12:59 PM
Reposted by Loïc Faugeron
mega php tip: use #[SensitiveParameter] for sensitive parameters.. php will hide its value in stack traces, error messages, and logs.. this prevents accidental leaks of secrets in production.. absolute chef's kiss tip.. ✨
September 30, 2025 at 8:55 AM
September 29, 2025 at 7:14 PM
Reposted by Loïc Faugeron
FYI: GitHub released a preview of a CLI for the their Copilot -> github.blog/changelog/20...
GitHub Copilot CLI is now in public preview - GitHub Changelog
GitHub Copilot CLI is now in public preview We’re bringing the power of GitHub Copilot coding agent directly to your terminal. With GitHub Copilot CLI, you can work locally and…
github.blog
September 25, 2025 at 8:19 PM
I had completly missed the release of PER CS 3.0 🙀

It takes into account all the latest changes from PHP 8.4 (such as no parenthesis around `new`).

bsky.app/profile/php-...
Version 3 of the PHP-FIG PER-Coding Style guidelines have been released, covering all the fun new features in #PHP 8.4!

Please help or sponsor your friendly neighborhood coding style tools so they can be updated, too. 🙂

www.php-fig.org/per/coding-s...
PER Coding Style 3.0 - PHP-FIG
We're a group of established PHP projects whose goal is to talk about commonalities between our projects and find ways we can work better together.
www.php-fig.org
September 27, 2025 at 7:29 AM
Published: eXtreme Legacy 3: End to End Tests

gnugat.github.io/2025/09/24/x...
September 24, 2025 at 8:28 AM
Reposted by Loïc Faugeron
`WHERE field != 'value'` may not include values with `NULL` in the results.

This is due to SQL's "Three Valued Logic", which considers a comparison with NULL, such as `NULL != 'value'`, as neither `true` or `false`, but `uknown`.

More on the subject: modern-sql.com/concept/thre...
Modern SQL: Three-Valued Logic (3VL) — Purpose, Benefits and Special Cases
Making decision despite missing SQL data (NULL): How to avoid OR…IS NULL in the WHERE clause.
modern-sql.com
September 23, 2025 at 3:25 PM
Reposted by Loïc Faugeron
I’m delighted to make you, the whole #Symfony community, discover how much you will love writing Console Commands as of Symfony 8.0 🚀

Hint: #HTTP Controllers are likely to end up being jealous 😊

Let’s meet in Amsterdam y’all 🤙 #SymfonyCon
September 24, 2025 at 2:42 AM
Ctrl+R in #ClaudeCode would be nice, to navigate history
September 22, 2025 at 1:53 PM
I've been using this one liner to merge for a while now:

```
_GIT_MERGE_FROM_BRANCH=$(git branch --show-current); git checkout main && git merge --no-ff $_GIT_MERGE_FROM_BRANCH && git branch -D $_GIT_MERGE_FROM_BRANCH && git push
```

Finally decided to make a script out of it!
September 22, 2025 at 9:54 AM
Published: eXtreme Legacy 2: Smoke Tests

gnugat.github.io/2025/09/17/x...
September 17, 2025 at 12:52 PM
Published: eXtreme Legacy 1: Dockerizing a 2005 LAMP app

gnugat.github.io/2025/09/10/x...
September 10, 2025 at 9:18 AM