#phpstan über das alte System laufen lassen. Alte Libs wie #phpids sollte ich dann wohl doch noch ersetzen oder standalone auf PHP8 migrieren.
#developer #development #php
Sometimes I admire PHP. I'm currently working with a pretty old codebase and the developers then threw every possible type you can imagine at a function and it somehow worked.
I made the mistake of adding a bit of strong typing and now everything is falling apart.
And there's a special kind of […]
Статанализ — must-have для проектов с Codex/ClaudeCode На днях у Кирилла Мокевнина вышел пост про то, как он разлюбил ди...
#статистический #анализ #статический #анализ #кода #ruff #phpstan #php-cs-fixer #php #python #go
Origin | Interest | Match
🚀 Bladestan 0.11.4 is out!
Find bugs in your Blade templates with static analysis.
This version adding support for:
⚡️ Livewire 3.7 & 4.0
🎼 Symfony 8
Check it out here: github.com/bladestan/bladestan
#phpstan #laravel #php #livewire #staticanalysis
php-ymap profile picture of UI
IMAP, IMAP, we have some IMAP to share. I was looking for a IMAP library, but after running some PHPStans on potential candidates, i thought it's time to let go and build my own fun park, with blacklists, and hooks. And of course it has a Demo, y not? #PHP #IMAP #PHPStan #WebDev
php-ymap.vercel.app
Kleines aber wichtiges Update des von mir betreuten #WordPress Plugins ProvenExpert: es ist nun voll mit WordPress 6.9 kompatibel. Zudem hat es #PHPStan Level 8 bestanden. de.wordpress.org/plugins/prov...
Hello, rendez-vous jeudi 30 octobre pour votre meetup #PHP ! Au menu :
🐘 Retour sur le #ForumPHP 2025 par Nicolas Demay
🔍 #PHPStan sur du legacy, un puits sans fond ? par @bouchery.fr
👇
meetup.com/afup-nantes-...
// cc @afup.org @poitiers.afup.org @bordeaux.afup.org
Because #jetbrains #MCP became useless to me and I only used 3 tools anyway, I let Ai create 189 custom #phpstan rules based on phpinspectionsea 😏
There might still be a lot of broken rules and errors in there,
But so far, most rules seem to work pretty okay.
Give Your #AI more Guidance in Writing #PHP code
With 189 Custom #phpstan rules 🚀 🔥
As a #phpstorm User, you should know phpinspectionsea -
if not, shame on you! 😏
#Ai shouldn't need an IDE to find errors or warnings in the code.
🧵 👇
#claudecode without #phpstan would be a catastrophe!
Thank God someone built that wonderful tool! ❤️
Happy weekend 😎
#php #ai #coding
Les éléphants PHPStan sont arrivés ! #phpstan
Some #PHP code I maintain from the late 1990s validates with #PHPStan level 0. I'm satisfied.
(It's an abandoned site nobody ever visits, but I make the minimum fixes to keep it running with latest PHP version).
The PHPStan elePHPants arrived today 🎉 ! Well done Ondřej Mirtes!
#PHP #ElePHPants #PHPStan #ElePHPant #blue
Just learned about the "@phpstan-assert-if-true" PHPStan annotation. Useful for creating custom type-checking functions that PHPStan can understand and use for type narrowing.
#PHP #PHPStan
Stan, the #Phpstan elephpant in my desk.
Another one for the herd! Welcome to your new home, Stan.
Thanks for the adoption opportunity @OndrejMirtes !
#elephpant #php #Phpstan
🚀 Bladestan 0.11.3 released! Now matches ignored errors using identifiers and fully respects your configured rules. Small update, big consistency.
github.com/bladestan/bl...
#phpstan #laravel #php #staticanalysis
#7 🔍 Run regular security audits using #Larastan, #PHPStan and security checkers
dev.to/sharifcse58...
Interface de PhpStorm avec l’analyse des sorties de prompt de PhpStan et JetBrains AI qui corrige les erreurs
Je n’ai pas regardé en détail je découvre ça en direct. Dans la dernière version de #PhpStorm #JetBrainsAI est capable de récupérer les erreurs soulevées par #PhpStan je vais regarder un peu voir en détail si c’est du bullshit ou intéressant
Hey #PHPStan enthusiasts! Is there a DI service that can be used in custom rule to resolve value of an argument passed to static method call? I did a simple implementation and it works, BUT it causes "Undefined constant" errors during analysis. Maybe there's something OOTB ☺️?
Have you ever felt the need to wrap all these glorified wrappers around an array in the Stripe API into real typed simple PHP Objects? (DTOs)?
Its always such a struggle to map them to something meaningful.
#PHP #Stripe #SDK #phpstan
for sha in $(git log -r --format=%h -- utils/phpstan/baseline_stats.json); do \ echo "$(git log -n1 --format=%as $sha) $(git show ${sha}:utils/phpstan/baseline_stats.json | jq '.total')"; \ done | \ gnuplot -p -e "set style data lines; set xlabel 'date'; set ylabel 'errors'; set xdata time; set timefmt '%Y-%m-%d'; set format x '%Y-%m-%d'; plot '-' using 1:2 title 'PHPStan errors over time' "
The chart is generated by `gnuplot`, and the input data is retrieved from Git history of a JSON file that stores #PHPStan errors' stats (cherry-picking total value using awesome `jq` tool). It is simple Proof of Concept, but it works great 😃.
Chart of PHPStan baseline error trend visualising how many error we have dumped to baseline and how it's changing over time.
Some time ago in our main app, I've introduced process for dumping #PHPStan baseline stats (total errors, sums by error identifier per area). It is automatically re-generated in our CI during production deployment. Thanks to this file and a few utils, we can now observe trends 😊.
🚀 Bladestan 0.11 released! Auto-find template & Livewire paths, detect shared/event data, support L12 & PHP8, process text/markdown, fix Telescope issues, handle with() data, support Response facade & improve array parsing for includes.
github.com/bladestan/bl...
#phpstan #laravel #staticanalysis
So, I made a thing... The AWS SDK for PHP is very basic when it comes to types and needing tons of asserts just to stop PHPStan from complaining annoys me.
This extension knows exactly what type each field of each AWS SDK call is and thus your PHPStan stops freaking out about everything being […]
📃 Vendredi revue de presse — Découvrez les sujets qui ont captivé notre équipe ces dernières semaines :
L'essor et les défis du no-code, des règles PHPStan pour Symfony et l'incroyable exploit de faire tourner DOOM en TypeScript 🤯
#NoCode #PHP #PHPStan #Symfony #TypeScript
In case you were wondering what's the versioning strategy for #PHPStan and whether it follows SemVer or not, its author provided great explanation that sums it up ☺️.
github.com/phpstan/phps...
#PHPStan 2.1.7 brings very cool new feature: extension point for conditional error ignoring 😍. Using `phpstan.ignoreErrorExtension`-tagged services you can have more atomic approach to handling static analysis errors.
phpstan.org/developing-e...