D
D
danforth2017-03-13 14:06:05
PHP
danforth, 2017-03-13 14:06:05

How to check the project for compatibility of PHP versions?

Let's say we have a project.
Is there any library that can recursively check a folder for compatibility with PHP5.3 ... PHP7.1 without installing extra PHP modules?
As a result, get a report with errors and a list of files.
Here is something similar: https://github.com/wimg/PHPCompatibility
Is there an alternative, or is it the best one out there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur, 2017-03-13
@XAKEPEHOK

If it’s correct, then you need to write tests for the code (unit and / or functional), and then run them under different versions of php. Other options are unlikely to give you any guarantees.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question