social.coop is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Fediverse instance for people interested in cooperative and collective projects. If you are interested in joining our community, please apply at https://join.social.coop/registration-form.html.

Administered by:

Server stats:

484
active users

#phpstorm

4 posts4 participants1 post today

Nouvelle version de PhpStorm dispo ! Support amélioré de PHP 8.x, performances revues à la hausse, meilleures intégrations Symfony/Laravel, refactorings plus intelligents, et plein de petites améliorations pour le confort des devs.

Le récap complet ici : jetbrains.com/phpstorm/whatsne

JetBrainsWhat’s New in PhpStorm 2025.1Explore the new PhpStorm version enhancements including better Xdebug support, nested .env variables, and improved WordPress setup.

Coding for work in PHP yesterday. JetBrains has recently turned on "Full Line Autocomplete" by default - an LLM that allegedly runs locally on your system. It's normally wrong and annoying, but it autocompleted something wrong in an extremely amusing way that showed no understanding whatsoever of the context of the code. It mistook null safe navigation for a tenary operataor and just started adding : false; on the end of the line.

Free #Phpstorm improvement idea: an inspection that highlights variables with implicit `mixed` type. Consider: a variable storing the result of an unknown method call, a variable that is undefined and referenced more than once, an untyped object property, and so on.

Sitting in PhpStorm and trying to get type hinting to work for calling generic functions.
I assume `$result` should get the type `T` and `$x` should be parsed as `int`, but the editor gives me no hint at all.
Is this even supposed to work?
```
/**
* @template T
* @param callable(): T $fun
* @return T
*/
function call(callable $fun) {
$result = $fun();
return $result;
}

$x = call(fn() => 1);
```
phpstan.org/r/76b4d50f-dd91-4e
#php #phpStorm #generics #phpDoc

phpstan.orgPlayground

@phpstorm I’m so close to switching to #vscode 😵‍💫

The whole jetbrains plugin ecosystem is a total mess when it comes to #AI. I feel like #JetBrains is the Android of #PHP editors—either there's nothing available, it's super outdated, or if something exists, it's buggy as hell. 😭

- Tabnine: Bugs for months, nothing more than autocomplete and chat.
- Continue: Autocomplete is a total mess (JetBrains version way behind VSCode). Also disables JetBrains' own inline code completion.
- GitHub Copilot: Chat = 💩, but the best in autocomplete.
- AI Assistant: Inline code completions don’t work when Continue is enabled. Chat and inline edits are okay.

There’s no single plugin that does it all—you need four different plugins to get the best of everything, which is crazy!

VSCode plugins are already getting AI agents, while PhpStorm plugins still struggle to make a working inline code completion without issues. That’s insane.

As much as I love #PhpStorm, it feels like
#VSCode is iOS, and PhpStorm is the old, forgotten Android when it comes to plugin development. And that’s just sad.

I never thought this day would come, but maybe it’s time to look at the other side of the coin... 😔

Question for PhpStorm users: What are the default patterns you see when you go to:

In the Settings dialog (Сmd+,) , select Editor | TODO.

I see 3:

\btodo\b.*
\bfixme\b.*
\bwtf\b.*

I don't know if I added the WTF item a long time ago, and I just forgot 😂 — OR — if it's one of the default patterns.

I'm hoping that wtf is one of the defaults (because that would be awesome), but please tell the truth.