~/talk

Introducing PHPStan from Scratch into a 20‑Year‑Old Legacy Product

TalkinJapaneseat PHP Conference Japan 2024 · on Sunday, 2024-12-22· [php, typescript]
links:none on file
slides:none on file

Adds PHPStan to a 20‑year legacy PHP product by making Composer autoload the default where possible, providing a bootstrap file to load legacy require paths and .din files, and rewriting hardcoded require paths instead of using symlinks. Uses PHPStan’s baseline feature to ignore historical issues; initial scans reported ~271 errors at level 0 (rising to thousands at higher levels) and later stabilized to 759 errors at level 0 and 61,837 at level 1. Continuous integration is not yet wired, but static analysis can now run after those fixes.

AI-written summary · about

  1. 0:00PHPStan intro
  2. 3:36What is PHPStan
  3. 5:17Setup challenges
  4. 7:05Configuring PHPStan
  5. 10:00Bootstrap importance
  6. 13:31Fixing require errors
  7. 16:16Bootstrap execution
  8. 17:20First analysis
  9. 18:44Baseline & errors
  10. 20:08Future improvements
  11. 21:35Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.