Skip to content

Commit

Permalink
Merge pull request #308 from spatie/v8.x
Browse files Browse the repository at this point in the history
Support new error solutions package
  • Loading branch information
nunomaduro authored Jul 16, 2024
2 parents 08e9d95 + cde4d7c commit 9b16be6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Adapters/Laravel/IgnitionSolutionsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
namespace NunoMaduro\Collision\Adapters\Laravel;

use NunoMaduro\Collision\Contracts\SolutionsRepository;
use Spatie\Ignition\Contracts\SolutionProviderRepository;
use Spatie\ErrorSolutions\Contracts\SolutionProviderRepository;
use Spatie\Ignition\Contracts\SolutionProviderRepository as IgnitionSolutionProviderRepository;
use Throwable;

/**
Expand All @@ -16,14 +17,14 @@ final class IgnitionSolutionsRepository implements SolutionsRepository
/**
* Holds an instance of ignition solutions provider repository.
*
* @var \Spatie\Ignition\Contracts\SolutionProviderRepository
* @var IgnitionSolutionProviderRepository|SolutionProviderRepository
*/
protected $solutionProviderRepository; // @phpstan-ignore-line

/**
* IgnitionSolutionsRepository constructor.
*/
public function __construct(SolutionProviderRepository $solutionProviderRepository) // @phpstan-ignore-line
public function __construct(IgnitionSolutionProviderRepository|SolutionProviderRepository $solutionProviderRepository) // @phpstan-ignore-line
{
$this->solutionProviderRepository = $solutionProviderRepository;
}
Expand Down

0 comments on commit 9b16be6

Please sign in to comment.