updated-packages
This commit is contained in:
25
vendor/doctrine/dbal/lib/Doctrine/DBAL/Exception/NoKeyValue.php
vendored
Normal file
25
vendor/doctrine/dbal/lib/Doctrine/DBAL/Exception/NoKeyValue.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Doctrine\DBAL\Exception;
|
||||
|
||||
use Doctrine\DBAL\Exception;
|
||||
|
||||
use function sprintf;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @psalm-immutable
|
||||
*/
|
||||
final class NoKeyValue extends Exception
|
||||
{
|
||||
public static function fromColumnCount(int $columnCount): self
|
||||
{
|
||||
return new self(
|
||||
sprintf(
|
||||
'Fetching as key-value pairs requires the result to contain at least 2 columns, %d given.',
|
||||
$columnCount
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user