diff --git a/src/Adapters/Laravel/Commands/TestCommand.php b/src/Adapters/Laravel/Commands/TestCommand.php index 41ae80c..3574202 100644 --- a/src/Adapters/Laravel/Commands/TestCommand.php +++ b/src/Adapters/Laravel/Commands/TestCommand.php @@ -79,7 +79,7 @@ public function handle() $laravelVersion = \Illuminate\Foundation\Application::VERSION; - if ($laravelVersion[0].$laravelVersion[1] !== '10') { // @phpstan-ignore-line + if ($laravelVersion[0].$laravelVersion[1] !== '10') { throw new RequirementsException('Running Collision 7.x artisan test command requires at least Laravel 10.x.'); } diff --git a/src/ConsoleColor.php b/src/ConsoleColor.php index 7102dee..c5b007f 100644 --- a/src/ConsoleColor.php +++ b/src/ConsoleColor.php @@ -218,7 +218,10 @@ private function styleSequence(string $style): ?string preg_match(self::COLOR256_REGEXP, $style, $matches); + // @phpstan-ignore-next-line $type = $matches[1] === 'bg_' ? self::BACKGROUND : self::FOREGROUND; + + // @phpstan-ignore-next-line $value = $matches[2]; return "$type;5;$value"; diff --git a/src/Contracts/SolutionsRepository.php b/src/Contracts/SolutionsRepository.php index fa43731..cdc02ba 100644 --- a/src/Contracts/SolutionsRepository.php +++ b/src/Contracts/SolutionsRepository.php @@ -4,7 +4,7 @@ namespace NunoMaduro\Collision\Contracts; -use Spatie\Ignition\Contracts\Solution; +use Spatie\ErrorSolutions\Contracts\Solution; use Throwable; /**