From 1ca2b3a5b58e2204aa0be94dc1cd7540ed7f9d76 Mon Sep 17 00:00:00 2001 From: Sebastian Blank Date: Mon, 11 Feb 2019 13:14:06 +0100 Subject: [PATCH] EZP-30122: Fixed missing argumentName parameter in InvalidArgumentType exception (#2542) --- eZ/Publish/Core/Base/Exceptions/InvalidArgumentType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eZ/Publish/Core/Base/Exceptions/InvalidArgumentType.php b/eZ/Publish/Core/Base/Exceptions/InvalidArgumentType.php index 9326aa9a0b2..5658c36653f 100644 --- a/eZ/Publish/Core/Base/Exceptions/InvalidArgumentType.php +++ b/eZ/Publish/Core/Base/Exceptions/InvalidArgumentType.php @@ -27,7 +27,7 @@ class InvalidArgumentType extends InvalidArgumentException */ public function __construct($argumentName, $expectedType, $value = null, Exception $previous = null) { - $parameters = ['%expectedType%' => $expectedType]; + $parameters = ['%argumentName%' => $argumentName, '%expectedType%' => $expectedType]; $this->setMessageTemplate("Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%'"); if ($value) { $this->setMessageTemplate("Argument '%argumentName%' is invalid: expected value to be of type '%expectedType%', got '%actualType%'");