diff --git a/lib/Doctrine/ORM/Query/AST/InputParameter.php b/lib/Doctrine/ORM/Query/AST/InputParameter.php index abc958796..54d70f93c 100644 --- a/lib/Doctrine/ORM/Query/AST/InputParameter.php +++ b/lib/Doctrine/ORM/Query/AST/InputParameter.php @@ -37,10 +37,16 @@ class InputParameter extends Node public $isNamed; public $name; + /** + * @param string $value + */ public function __construct($value) { if (strlen($value) == 1) { - throw new \InvalidArgumentException("Invalid parameter format."); + throw new \InvalidArgumentException( + "Invalid parameter format, '".$value."' given, ". + "but : or ? expected." + ); } $param = substr($value, 1);