mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 01:37:21 +01:00
Renamed DatasetAlreadyExists exception
This commit is contained in:
@ -12,7 +12,7 @@ use Symfony\Component\Console\Exception\ExceptionInterface;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class DatasetAlreadyExist extends InvalidArgumentException implements ExceptionInterface, RenderlessEditor, RenderlessTrace
|
||||
final class DatasetAlreadyExists extends InvalidArgumentException implements ExceptionInterface, RenderlessEditor, RenderlessTrace
|
||||
{
|
||||
/**
|
||||
* Creates a new Exception instance.
|
||||
@ -5,7 +5,7 @@ declare(strict_types=1);
|
||||
namespace Pest\Repositories;
|
||||
|
||||
use Closure;
|
||||
use Pest\Exceptions\DatasetAlreadyExist;
|
||||
use Pest\Exceptions\DatasetAlreadyExists;
|
||||
use Pest\Exceptions\DatasetDoesNotExist;
|
||||
use Pest\Exceptions\ShouldNotHappen;
|
||||
use SebastianBergmann\Exporter\Exporter;
|
||||
@ -43,7 +43,7 @@ final class DatasetsRepository
|
||||
$datasetKey = "$scope".self::SEPARATOR."$name";
|
||||
|
||||
if (array_key_exists("$datasetKey", self::$datasets)) {
|
||||
throw new DatasetAlreadyExist($name, $scope);
|
||||
throw new DatasetAlreadyExists($name, $scope);
|
||||
}
|
||||
|
||||
self::$datasets[$datasetKey] = $data;
|
||||
|
||||
Reference in New Issue
Block a user