6db374aefca358c4df8b7e89f2d52c8238046f64
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 declare(strict_types=1);
4
5 namespace CuyZ\Valinor\Type\Parser\Exception\Generic;
6
7 use CuyZ\Valinor\Type\Parser\Exception\InvalidType;
8 use ReflectionClass;
9 use RuntimeException;
10
11 /** @internal */
12 final class ExtendTagTypeError extends RuntimeException implements InvalidType
13 {
14 /**
15 * @param ReflectionClass<object> $reflection
16 */
17 public function __construct(ReflectionClass $reflection, InvalidType $previous)
18 {
19 parent::__construct(
20 "The `@extends` tag of the class `$reflection->name` is not valid: {$previous->getMessage()}",
21 1670193574,
22 $previous
23 );
24 }
25 }