a9794b12098251aed3df24a2ad15eb2fd7245855
[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 CuyZ\Valinor\Type\Type;
9 use LogicException;
10
11 /** @internal */
12 final class TransformerHasInvalidCallableParameter extends LogicException
13 {
14 public function __construct(FunctionDefinition $function, Type $parameterType)
15 {
16 parent::__construct(
17 "Transformer's second parameter must be a callable, `{$parameterType->toString()}` given for `{$function->signature()}`.",
18 1695065710,
19 );
20 }
21 }