From 627c5cfdc7820f77f098db42ceb88668c553033d Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 15 Oct 2024 16:10:42 +0100 Subject: [PATCH] fixes ci --- src/Adapters/Laravel/Commands/TestCommand.php | 2 +- src/ConsoleColor.php | 3 +++ src/Contracts/SolutionsRepository.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Adapters/Laravel/Commands/TestCommand.php b/src/Adapters/Laravel/Commands/TestCommand.php index 41ae80c0..35742027 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 7102dee1..c5b007f7 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 fa43731e..cdc02ba2 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; /**