7d11f0301d8dfd777596f3d227951261e153d462
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 /**
4 * @see https://github.com/laminas/laminas-diactoros for the canonical source repository
5 * @copyright https://github.com/laminas/laminas-diactoros/blob/master/COPYRIGHT.md
6 * @license https://github.com/laminas/laminas-diactoros/blob/master/LICENSE.md New BSD License
7 */
8
9 declare(strict_types=1);
10
11 namespace Laminas\Diactoros\Exception;
12
13 use UnexpectedValueException;
14
15 use function sprintf;
16
17 class UnrecognizedProtocolVersionException extends UnexpectedValueException implements ExceptionInterface
18 {
19 public static function forVersion(string $version) : self
20 {
21 return new self(sprintf('Unrecognized protocol version (%s)', $version));
22 }
23 }