e2684323d53dd2c46c493cfd516a5d77a9b6e853
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 declare(strict_types=1);
4
5 namespace CuyZ\Valinor\Definition\Exception;
6
7 use CuyZ\Valinor\Type\Type;
8 use CuyZ\Valinor\Type\ClassType;
9 use LogicException;
10
11 /** @internal */
12 final class InvalidTypeAliasImportClassType extends LogicException
13 {
14 public function __construct(ClassType $classType, Type $type)
15 {
16 parent::__construct(
17 "Importing a type alias can only be done with classes, `{$type->toString()}` was given in class `{$classType->className()}`.",
18 1638535608
19 );
20 }
21 }