Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Yozhef Hisem: How I Learned to Stop Worrying and Loved Static Analysis Tools

Yozhef Hisem: How I Learned to Stop Worrying and Loved Static Analysis Tools

Yozhef Hisem, Back-end engineer at MacPaw, during this talk discussed different static analysis tools for PHP:
* PHP Inspections Plugin
* PHPStan
* Code Style
* Deptrac
* and also tools to control dependencies versions

The presentation contains example code and other practical information on static analysis of PHP.

MacPaw Tech Talks

July 08, 2020
Tweet

More Decks by MacPaw Tech Talks

Other Decks in Programming

Transcript

  1. Static Analysis Tools for today • PHP Inspections Plugin •

    PHPStan • Code Style • Deptrac • Control dependency version 4
  2. 9

  3. 11

  4. 13

  5. Level checking: 0. basic checks
 1. possibly undefined variables
 2.

    unknown methods checked on all expressions 
 3. return types
 4. basic dead code checking 
 …
 9. report missing typehints 20
  6. 31

  7. PHP Standards Recommendations Accepted - 13 level
 Draft - 2

    level
 Abandoned - 3 level
 Deprecated - 2 level 33
  8. 51