1

Im wondering if there are any existing PHPStan rules / ruleset which checks a codebase for BC breaking changes when wanting to migrate from PHP 7.0 to PHP 7.2.

Michal
  • 1,010
  • 2
  • 8
  • 18

1 Answers1

1

PHPStan makes an analysis of your code, not a check for PHP code compatibility.

Better tools for such migration is PHP CS Fixer: see this [Meta] PHP 7.2 features

Tomas Votruba
  • 23,240
  • 9
  • 79
  • 115
  • 1
    By analysing the code it can check for BC breaking changes. For example, giving not enough parameters to a function. But i will check out that link you send. Thanks! – Michal Sep 14 '18 at 11:33
  • That's true. The difference is rather tell vs. do. – Tomas Votruba Sep 19 '18 at 08:08