Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge remote-tracking branch 'upstream/7.4'
  • Loading branch information
adamwojs committed Feb 11, 2019
2 parents 2682fe4 + 0dc83d4 commit c25890e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eZ/Publish/Core/Base/Exceptions/InvalidArgumentType.php
Expand Up @@ -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%'");
Expand Down

0 comments on commit c25890e

Please sign in to comment.