eec49cd50dbaf3f8aa77659ff60451dafe210ea2
[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 KeyTransformerHasTooManyParameters extends LogicException
12 {
13 public function __construct(FunctionDefinition $function)
14 {
15 parent::__construct(
16 "Key transformer must have at most 1 parameter, {$function->parameters()->count()} given for `{$function->signature()}`.",
17 1701701102,
18 );
19 }
20 }