f47208efb34985d1398d1c411c2f6197bf68d7a1
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 declare(strict_types=1);
4
5 namespace CuyZ\Valinor\Mapper\Object\Exception;
6
7 use CuyZ\Valinor\Definition\FunctionDefinition;
8 use CuyZ\Valinor\Type\Type;
9 use LogicException;
10
11 /** @internal */
12 final class InvalidConstructorClassTypeParameter extends LogicException
13 {
14 public function __construct(FunctionDefinition $function, Type $type)
15 {
16 parent::__construct(
17 "Invalid type `{$type->toString()}` for the first parameter of the constructor `{$function->signature()}`, it should be of type `class-string`.",
18 1661517000
19 );
20 }
21 }