3 declare(strict_types=1);
5 namespace CuyZ\Valinor\Type\Parser\Exception\Generic;
7 use CuyZ\Valinor\Type\Parser\Exception\InvalidType;
12 final class ExtendTagTypeError extends RuntimeException implements InvalidType
15 * @param ReflectionClass<object> $reflection
17 public function __construct(ReflectionClass $reflection, InvalidType $previous)
20 "The `@extends` tag of the class `$reflection->name` is not valid: {$previous->getMessage()}",