Статанализ — must-have для проектов с Codex/ClaudeCode

На днях у Кирилла Мокевнина вышел пост про то, как он разлюбил динамическую типизацию. Мысль понятная: на больших кодовых базах отсутствие типов начинает дорого стоить. Хочу дополнить аргументом, который в 2026 году уже стал прям must-have: статанализ и типы — это лучший self-check для AI-агента . Современные агенты для разработки (Claude Code на Opus 4.5 и ChatGPT Codex 5.2 High) хорошо пишут код. Ошибок уровня «переменная не объявлена», «импорт забыл», «опечатка в имени метода» по сути уже почти нет. Основные промахи чаще про другое:

https://habr.com/ru/articles/993004/

#статистический_анализ #статический_анализ_кода #ruff #phpstan #phpcsfixer #php #python #go #codex #claude_code

Статанализ — must-have для проектов с Codex/ClaudeCode

На днях у Кирилла Мокевнина вышел пост про то, как он разлюбил динамическую типизацию. Мысль понятная: на больших кодовых базах отсутствие типов начинает дорого стоить. Хочу дополнить аргументом,...

Хабр

In case your daily #phpstan run takes minutes instead of seconds you likely don’t utilize the result cache.

Find solutions at https://staabm.github.io/2023/10/21/phpstan-result-cache-gotchas.html

PHPStan result cache gotchas

As part of the performance post series we had a look into a lot of profiling and in detail code optimizations.

My developer experience
Release 2.1.38 · phpstan/phpstan

This version brings another 5-10 % faster performance! 🏎️ Improvements 🔧 Remove PHP version constraint from the #[\Override] attribute rules (#4436), thanks @johnbillion! OverridingPropertyRule - ...

GitHub

The other night I made this little #PHP tool that validates #PHPDoc annotations against the actual method signature, to make sure that they are compatible and don't drift apart over time.

I use it as a quick check before running #PHPStan to make sure that the static analysis is correctly informed. Published it on #Packagist in case anyone else would find it useful too: https://packagist.org/packages/nsrosenqvist/phpdoc-validator

nsrosenqvist/phpdoc-validator - Packagist.org

Validates PHPDoc @param and @return tags against method signatures

After ~6 weeks of collaboration we released a blazing fast #PHPStan version - static analysis on steroids.

https://staabm.github.io/2026/01/25/phpstan-on-steroids.html

PHPStan on steroids

Similar to last year, while on vacation of my primary job I focused my open source efforts on improving PHPStan performance.

My developer experience
Release 2.1.36 · phpstan/phpstan

Bugfixes 🐛 Fix FNSR false positive about "expr.resultUnused" (phpstan/phpstan-src@ca7ab77) Fix named argument parameter matching in getFunctionCallStackWithParameters (#4791), thanks @janedbal! Do...

GitHub

Yesterdays massive #phpstan release contains ~100 contributions of mine, most of them improving performance.

Report back how it works for you...
Also make sure your boss knows how to sponsor my efforts so I can keep improving your daily workflow.

https://phpc.social/@OndrejMirtes/115923527235389438

Release 2.1.34 · phpstan/phpstan

Major new features 🚀 Optimized performance 🏎️ Caching of reflection objects and resolved PHPDocs Many raw performance optimization tweaks in analyser code (thanks @staabm!) Projects typically see...

GitHub