A library for comparing two HTML files/snippets and highlighting the differences using simple HTML. Includes support for comparing complex lists and tables
PHP 8 came out a couple of weeks ago, but this library is not compatible with it yet.
In order to make it compatible I have done a couple of things.
[x] Upgraded PHPUnit to a version that is not EOL
[x] Upped the minimum requirements for the next release to PHP 7.3 (required for PHPUnit)
[x] Renamed the Match to MathingBlock class since it collides with a PHP8 native keyword
[x] Updated php-cs-fixer config for Scrutinizer so that it works on PHP7 and up
See commit descriptions for more information.
Reasoning behind the minimum PHP version
Our vendors (PHPUnit) in this case, have left the old versions long behind, there is no maintained version that still supports PHP5, and I would argue that if you really want to use PHP5 (or have to) you can lock a release version of this library, since it has been a stable library for a couple of years.
Tested on PHP8
I have run all tests on PHP8, and checked with code coverage how much code was covered, about 80%, so I feel confidant that we are PHP8 compatible now.
Sidenote
I did notice we have some classes like ListDiff and ListDiffItem that are not referenced in the codebase @jschroed91, can we clean those up? 😅
Description
PHP 8 came out a couple of weeks ago, but this library is not compatible with it yet.
In order to make it compatible I have done a couple of things.
Match
toMathingBlock
class since it collides with a PHP8 native keywordSee commit descriptions for more information.
Reasoning behind the minimum PHP version
Our vendors (PHPUnit) in this case, have left the old versions long behind, there is no maintained version that still supports PHP5, and I would argue that if you really want to use PHP5 (or have to) you can lock a release version of this library, since it has been a stable library for a couple of years.
Tested on PHP8
I have run all tests on PHP8, and checked with code coverage how much code was covered, about 80%, so I feel confidant that we are PHP8 compatible now.
Sidenote
I did notice we have some classes like
ListDiff
andListDiffItem
that are not referenced in the codebase @jschroed91, can we clean those up? 😅