File "DatabaseRequired.php"
Full Path: /home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/doctrine/dbal/src/DatabaseRequired.php
File size: 445 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Exception;
use Doctrine\DBAL\Exception;
use function sprintf;
/** @psalm-immutable */
class DatabaseRequired extends \Exception implements Exception
{
public static function new(string $methodName): self
{
return new self(
sprintf(
'A database is required for the method: %s.',
$methodName,
),
);
}
}