20 lines
428 B
PHP
20 lines
428 B
PHP
<?php
|
|
|
|
namespace Doctrine\DBAL\ArrayParameters\Exception;
|
|
|
|
use Doctrine\DBAL\ArrayParameters\Exception;
|
|
use LogicException;
|
|
|
|
use function sprintf;
|
|
|
|
/** @psalm-immutable */
|
|
class MissingNamedParameter extends LogicException implements Exception
|
|
{
|
|
public static function new(string $name): self
|
|
{
|
|
return new self(
|
|
sprintf('Named parameter "%s" does not have a bound value.', $name),
|
|
);
|
|
}
|
|
}
|