Sindbad~EG File Manager

Current Path : /opt/nginxhttpd_/vendor/doctrine/dbal/src/Driver/PgSQL/Exception/
Upload File :
Current File : //opt/nginxhttpd_/vendor/doctrine/dbal/src/Driver/PgSQL/Exception/UnexpectedValue.php

<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Driver\PgSQL\Exception;

use Doctrine\DBAL\Driver\Exception;
use UnexpectedValueException;

use function sprintf;

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

    /** @return null */
    public function getSQLState()
    {
        return null;
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists