Skip to content

Commit 1101746

Browse files
committed
Fix build
1 parent 4fefc22 commit 1101746

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/NeverException.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace PHPStan;
4+
5+
use Exception;
6+
use function get_debug_type;
7+
use function sprintf;
8+
9+
final class NeverException extends Exception
10+
{
11+
12+
/**
13+
* @param never $value
14+
*/
15+
public function __construct($value)
16+
{
17+
parent::__construct(sprintf('Unknown value %s, expected never', get_debug_type($value)));
18+
}
19+
20+
}

0 commit comments

Comments
 (0)