f8291094ec060cbc6bb01040c319ddb1772e42f5
[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 TransformerHasTooManyParameters extends LogicException
12 {
13 public function __construct(FunctionDefinition $function)
14 {
15 parent::__construct(
16 "Transformer must have at most 2 parameters, {$function->parameters()->count()} given for `{$function->signature()}`.",
17 1695065433,
18 );
19 }
20 }