d2bd244e4ade21cce9a9befa39e33f1136f4247b
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 declare(strict_types=1);
4
5 namespace CuyZ\Valinor\Mapper\Tree\Exception;
6
7 use CuyZ\Valinor\Definition\FunctionDefinition;
8 use CuyZ\Valinor\Type\ClassType;
9 use RuntimeException;
10
11 /** @internal */
12 final class CannotInferFinalClass extends RuntimeException
13 {
14 public function __construct(ClassType $class, FunctionDefinition $function)
15 {
16 parent::__construct(
17 "Cannot infer final class `{$class->className()}` with function `{$function->signature()}`.",
18 1671468163
19 );
20 }
21 }