Вход Регистрация
Файл: vendor/doctrine/dbal/src/Driver/PgSQL/Exception/UnexpectedValue.php
Строк: 34
<?php

declare(strict_types=1);

namespace 
DoctrineDBALDriverPgSQLException;

use 
DoctrineDBALDriverException;
use 
UnexpectedValueException;

use function 
sprintf;

final class 
UnexpectedValue extends UnexpectedValueException implements Exception
{
    public static function new(
string $valuestring $type): self
    
{
        return new 
self(sprintf(
            
'Unexpected value "%s" of type "%s" returned by Postgres',
            
$value,
            
$type,
        ));
    }

    
/** @return null */
    
public function getSQLState()
    {
        return 
null;
    }
}
Онлайн: 1
Реклама