PHP-CS-Fixer/diff

Undefined array key in TimeEfficientLongestCommonSubsequenceImplementation

sanmai opened this issue · 1 comments

I get these errors on PHP 8:

1) PhpCsFixer\Tests\AutoReview\DocumentationTest::testFixerDocumentationFileIsUpToDate with data set "encoding" (PhpCsFixer\Fixer\Basic\EncodingFixer Object (...))
Undefined array key 140728039845183

/home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/vendor/php-cs-fixer/diff/src/v2_0/TimeEfficientLongestCommonSubsequenceCalculator.php:49
/home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/vendor/php-cs-fixer/diff/src/v2_0/Differ.php:123
/home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/vendor/php-cs-fixer/diff/src/v2_0/Differ.php:65
/home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/src/Documentation/DocumentationGenerator.php:516
/home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/src/Documentation/DocumentationGenerator.php:315
/home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/tests/AutoReview/DocumentationTest.php:43

1) PhpCsFixer\Tests\Differ\SebastianBergmannShortDifferTest::testDiffReturnsDiff
Undefined array key 140725147700175

/home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/vendor/php-cs-fixer/diff/src/v1_4/LCS/TimeEfficientLongestCommonSubsequenceImplementation.php:57
/home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/vendor/php-cs-fixer/diff/src/v1_4/Differ.php:230
/home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/vendor/php-cs-fixer/diff/src/v1_4/Differ.php:55
/home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/src/Differ/SebastianBergmannShortDiffer.php:37
/home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/tests/Differ/SebastianBergmannShortDifferTest.php:36
/home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/vendor/phpunitgoodpractices/traits/src/ExpectationViaCodeOverAnnotationTrait7.php:39

Ref:

@sanmai , please check whether you have same issue on original repo - https://github.com/sebastianbergmann/diff