FailedReadingStreamOffset.php 431 Bytes
Newer Older
1 2 3 4 5 6
<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Driver\Mysqli\Exception;

7
use Doctrine\DBAL\Driver\AbstractException;
8 9 10 11 12 13 14 15

use function sprintf;

/**
 * @internal
 *
 * @psalm-immutable
 */
16
final class FailedReadingStreamOffset extends AbstractException
17
{
18
    public static function new(int $parameter): self
19
    {
20
        return new self(sprintf('Failed reading the stream resource for parameter #%d.', $parameter));
21 22
    }
}