30c955fc36304aecf703bbf685d71d2f54566ad9
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 declare(strict_types=1);
4
5 namespace CuyZ\Valinor\Normalizer\Exception;
6
7 use CuyZ\Valinor\Definition\FunctionDefinition;
8 use LogicException;
9
10 /** @internal */
11 final class KeyTransformerParameterInvalidType extends LogicException
12 {
13 public function __construct(FunctionDefinition $function)
14 {
15 parent::__construct(
16 "Key transformer parameter must be a string, {$function->parameters()->at(0)->type()->toString()} given for `{$function->signature()}`.",
17 1701706316,
18 );
19 }
20 }