3 declare(strict_types=1);
5 namespace CuyZ\Valinor\Mapper\Object\Exception;
7 use CuyZ\Valinor\Definition\FunctionDefinition;
8 use CuyZ\Valinor\Type\Type;
12 final class InvalidConstructorClassTypeParameter extends LogicException
14 public function __construct(FunctionDefinition $function, Type $type)
17 "Invalid type `{$type->toString()}` for the first parameter of the constructor `{$function->signature()}`, it should be of type `class-string`.",