for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Schema\Exception;
use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\DBAL\Schema\Table;
use function implode;
use function sprintf;
final class NamedIndexRequired extends SchemaException
{
public static function new(Table $table, Index $index) : self
return new self(
sprintf(
'The performed schema operation on %s requires a named index, but the given index on (%s) is currently unnamed.',
$table->getName(),
implode(', ', $index->getColumns())
)
);
}