5f304b1d657f5efa98383ffa7e162bad92976769
[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\ClassType;
8 use LogicException;
9
10 /** @internal */
11 final class UnknownTypeAliasImport extends LogicException
12 {
13 /**
14 * @param class-string $importClassName
15 */
16 public function __construct(ClassType $type, string $importClassName, string $alias)
17 {
18 parent::__construct(
19 "Type alias `$alias` imported in `{$type->className()}` could not be found in `$importClassName`",
20 1638535757
21 );
22 }
23 }