blob: c17761110b21bf17b2532251968bd9c0944405de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Exception;
use Doctrine\DBAL\Exception;
use LogicException;
use function sprintf;
/** @psalm-immutable */
final class InvalidColumnDeclaration extends LogicException implements Exception
{
public static function fromInvalidColumnType(string $columnName, InvalidColumnType $e): self
{
return new self(sprintf('Column "%s" has invalid type', $columnName), 0, $e);
}
}
|