Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidArgumentException in DiffColorizer #1999

Closed
sanmai opened this issue Oct 4, 2024 · 0 comments · Fixed by #2000
Closed

InvalidArgumentException in DiffColorizer #1999

sanmai opened this issue Oct 4, 2024 · 0 comments · Fixed by #2000
Assignees

Comments

@sanmai
Copy link
Member

sanmai commented Oct 4, 2024

Question Answer
Infection version 0.29.6
Test Framework version PHPUnit 9.6.21
PHP version 8.2.20
Platform Linux
Github Repo kalimatas/php-liquid#219

Downgrading to 0.28.1 fixes the problem.

I'm looking at the following stack trace:

In Assert.php line 2074:
                                               
  [Webmozart\Assert\InvalidArgumentException]  
  Expected a value identical to "-". Got: "<"  
                                               

Exception trace:
  at vendor/webmozart/assert/src/Assert.php:2074
 Webmozart\Assert\Assert::reportInvalidArgument() at vendor/webmozart/assert/src/Assert.php:814
 Webmozart\Assert\Assert::same() at vendor/infection/infection/src/Differ/DiffColorizer.php:70
 Infection\Differ\DiffColorizer->colorize() at vendor/infection/infection/src/Event/Subscriber/MutationTestingConsoleLoggerSubscriber.php:145
 Infection\Event\Subscriber\MutationTestingConsoleLoggerSubscriber->showMutations() at vendor/infection/infection/src/Event/Subscriber/MutationTestingConsoleLoggerSubscriber.php:102
 Infection\Event\Subscriber\MutationTestingConsoleLoggerSubscriber->onMutationTestingWasFinished() at vendor/infection/infection/src/Event/EventDispatcher/SyncEventDispatcher.php:59
 Infection\Event\EventDispatcher\SyncEventDispatcher->dispatch() at vendor/infection/infection/src/Process/Runner/MutationTestingRunner.php:123
 Infection\Process\Runner\MutationTestingRunner->run() at vendor/infection/infection/src/Engine.php:134
 Infection\Engine->runMutationAnalysis() at vendor/infection/infection/src/Engine.php:74
 Infection\Engine->execute() at vendor/infection/infection/src/Command/RunCommand.php:403
 Infection\Command\RunCommand->executeCommand() at vendor/infection/infection/src/Command/BaseCommand.php:75
 Infection\Command\BaseCommand->execute() at vendor/symfony/console/Command/Command.php:279
 Symfony\Component\Console\Command\Command->run() at vendor/symfony/console/Application.php:1029
 Symfony\Component\Console\Application->doRunCommand() at vendor/symfony/console/Application.php:316
 Symfony\Component\Console\Application->doRun() at vendor/symfony/console/Application.php:167
 Symfony\Component\Console\Application->run() at vendor/infection/infection/bin/infection:85
 include() at vendor/bin/infection:119

(I don't have the capacity to look into it right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants