~/talk

Automatic PHP 7 Compatibility Checking Using php7cc

Talkat PHP UK Conference 2018 · 2018-02-14..02-16· [php, testing]
slides:none on file

Two static checkers run and disagree: php7cc and PHPCompatibility (PHP_CodeSniffer) run via composer against real repos, show different unique errors and warnings, and do not auto-fix. On a 2,364‑file codebase php7cc takes ~276s and PHPCompatibility ~271s; Zend Framework snapshot reports ~330 compatibility items while Slim shows zero and Symfony only a few. The tools point to concrete failures (reserved class names, PHP4 constructors, removed extensions, bitwise shifts) with filenames and line numbers so fixes are actionable.

AI-written summary · about

  1. 0:00Start
  2. 2:18Crimping Tool for Pex Piping
  3. 2:43Compatibility Checker
  4. 3:57Why Are these Tools Important
  5. 6:49Why Would We Want To Upgrade to Php
  6. 9:03Scalar Type Declarations
  7. 9:39Reserved Class Names
  8. 10:41Top 3 Offenders List
  9. 11:42Static Calls to Non Static Methods
  10. 15:48Live Demo
  11. 17:03Install It Composer
  12. 20:02Output Format
  13. 21:21Php Compatibility
  14. 23:38Sniff for Php Code Sniffer
~/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.