I have a bunch of PHP 5.6 code that I would like to get up to 7.2. My biggest concern was the change that causes an error when you call a function without enough parameters. Previously, this was a warning. This is the change I know for a fact affects me, but others may as well. So what I did is I put together a small sample file and started opening it in various IDEs to see if any of them would tell me that it is not valid 7.2. So far I am 0 for 3.
Apparently this is a run time error, so simply running the file or running it with -l doesn't work. So how can I make sure my code is acceptable for PHP 7.2 without manually going through every file?
I guess I wasn't clear enough. There is too much code to simply add unit tests. Support for php 5.6 ends in about a month. I cannot add unit tests to 15 year's worth of code in a month.time for the company to pay the technical debt.