~/talk

PHP 8.2 - Just upgrade and go?

Talkat phpday 2023 · 2023-05-18..05-19· [php]
slides:none on file

Argues that "just upgrade and go" fails unless tests and automation back it up and then demonstrates concrete steps and tools: install a recent runtime in a container, run PHPUnit 9 against 200+ tests, run the IDE inspection via CLI to produce JSON, run Rector to apply refactor rules, and use characterization tests and recorded HTTP proxies to ensure identical behavior. Example project templ has 100% test coverage locally but shows two failing tests on a PHP 8.3 nightly revealing an XML namespace change.

AI-written summary · about

  1. 0:00Introduction
  2. 2:52PHP 8.2 testing setup
  3. 7:13Real-world upgrade challenges
  4. 9:19Automated compatibility tools
  5. 13:17PHPStorm upgrade help
  6. 15:03PHP Inspections (EA Extended)
  7. 17:51Refactoring with Rector
  8. 22:47Testing after changes
  9. 24:14Characterization tests
  10. 33:54CI and daily testing
  11. 36:02Nightly builds testing
  12. 40:36Q&A
~/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.