Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace Doctrine\DBAL\Exception;
6
 
7
use Doctrine\DBAL\Exception;
8
 
9
use function sprintf;
10
 
11
/** @psalm-immutable */
12
class DatabaseRequired extends Exception
13
{
14
    public static function new(string $methodName): self
15
    {
16
        return new self(sprintf('A database is required for the method: %s.', $methodName));
17
    }
18
}