AI Writes Code. Guardrails Keep It Honest.
AI assisted coding needs deterministic guardrails. Turn every issue you find in generated code into a check the agent has to fix.
4 talks, 3 articles
AI assisted coding needs deterministic guardrails. Turn every issue you find in generated code into a check the agent has to fix.
PHPStan increases code quality and reduces bugs. Learn how custom rules amplify these benefits.
Type hints reduce bugs and enable safe refactoring, but PHP's type system has limits. Learn how static analysis bridges the gaps.
Full-day workshop covering how to write custom rules for both PHPStan and Rector.
The PHPStan Effect System is an experimental PHPStan extension that lets you name behaviours, such as calling external services, track them through the call graph, and report when they reach code where they aren't allowed.
The PHPStan Rule Test Helper is an open source library that makes tests for custom PHPStan rules easier to write and maintain, by removing line numbers and duplicated error messages from tests.
This is the first part of a 4 part series of articles about adding PHPStan to existing projects. First we'll deal with team members who might object.