Skip to content

Commit

Permalink
fixes ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Oct 15, 2024
1 parent 68fc8ea commit 627c5cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Adapters/Laravel/Commands/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {

Check failure on line 82 in src/Adapters/Laravel/Commands/TestCommand.php

View workflow job for this annotation

GitHub Actions / PHPStan prefer-lowest

Strict comparison using !== between '10' and '10' will always evaluate to false.

Check failure on line 82 in src/Adapters/Laravel/Commands/TestCommand.php

View workflow job for this annotation

GitHub Actions / PHPStan prefer-stable

Strict comparison using !== between '10' and '10' will always evaluate to false.
throw new RequirementsException('Running Collision 7.x artisan test command requires at least Laravel 10.x.');
}

Expand Down
3 changes: 3 additions & 0 deletions src/ConsoleColor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Check failure on line 222 in src/ConsoleColor.php

View workflow job for this annotation

GitHub Actions / PHPStan prefer-lowest

No error to ignore is reported on line 222.

// @phpstan-ignore-next-line
$value = $matches[2];

Check failure on line 225 in src/ConsoleColor.php

View workflow job for this annotation

GitHub Actions / PHPStan prefer-lowest

No error to ignore is reported on line 225.

return "$type;5;$value";
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/SolutionsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace NunoMaduro\Collision\Contracts;

use Spatie\Ignition\Contracts\Solution;
use Spatie\ErrorSolutions\Contracts\Solution;
use Throwable;

/**
Expand Down

0 comments on commit 627c5cf

Please sign in to comment.