~/talk

Rules, Not Prompts: PHPStan and Coding Agents

slides:none on file

Agents generate PHP but safety and long‑term design require both human review and automated checks; PHPStan runs static analysis, prints per‑error identifiers and agent instructions, and supports rule levels (recommendation: aim for at least level five) and extras like linkage, shipmong dead code detector and conditional return types. Custom PHPStan rules enforce things like “no new Person except in PersonFactory,” are testable, and run against the codebase; agents can generate rules but human review finds edge cases and ensures fixes address root causes rather than silencing errors.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:23Why review agent-generated code
  3. 5:54Tool review and PHPStan basics
  4. 7:04Understanding PHPStan rule levels
  5. 11:39Advanced PHPStan features
  6. 16:22PHPStan for coding agents
  7. 19:31Custom PHPStan rules motivation
  8. 21:04Writing custom PHPStan rules
  9. 26:48Testing and maintaining custom rules
  10. 28:21Generating rules with agents
  11. 30:45Q&A and closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.