Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Mastering PHPStan Custom Rules - Defect Driven Design and Static Analysis

PHP UK Conference via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore the advanced capabilities of PHPStan custom rules in this 29-minute conference interview with Ondřej Mirtes, the creator of PHPStan, recorded for PHP UK Conference. Discover how to move beyond standard static analysis to create project-specific rules that enforce architectural decisions and maintain codebase consistency. Learn the concept of "Defect Driven Design" where custom rules replace individual tests to prevent entire categories of bugs permanently. Understand how static analysis can detect issues without executing code and how it serves as a testing ground for future PHP language features like Generics and the never return type. Gain insights into working with Abstract Syntax Trees (AST) to understand code structure and the relationship between PHPStan's detection capabilities and Rector's automation features. Get details about PHPStan Office Hours at the conference hallway track and learn about commercial usage and project support options.

Syllabus

- Introduction: PHPStan at PHP UK
- What are Custom Rules?
- Finding Bugs Without Executing Code
- "Defect Driven Design": Replacing Tests with Rules
- Enforcing Codebase Consistency
- Understanding Code at the AST Level
- From Detection PHPStan to Automation Rector
- Static Analysis as a Playground for PHP Features
- Announcing: PHPStan Office Hours Hallway Track
- Supporting the Project & Commercial Usage
- The PHP UK Conference experience

Taught by

PHP UK Conference

Reviews

Start your review of Mastering PHPStan Custom Rules - Defect Driven Design and Static Analysis

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.