From db528a44b14e76751c41232f81601cfe8e263ad9 Mon Sep 17 00:00:00 2001 From: Franck Magnan Date: Tue, 23 May 2017 15:24:24 +0200 Subject: [PATCH] Update QueryBuilder.php Hello, thank you very much for your work, it's awesome! I found a minor error in PHPDOC for method setParameter. Argument "type" can be a string or null but can be also an int if it comes from \PDO::PARAM_*. So I've changed typehint "string" into "mixed". --- lib/Doctrine/ORM/QueryBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/QueryBuilder.php b/lib/Doctrine/ORM/QueryBuilder.php index 70b55f17d..894fbc32f 100644 --- a/lib/Doctrine/ORM/QueryBuilder.php +++ b/lib/Doctrine/ORM/QueryBuilder.php @@ -526,7 +526,7 @@ class QueryBuilder * * @param string|integer $key The parameter position or name. * @param mixed $value The parameter value. - * @param string|null $type PDO::PARAM_* or \Doctrine\DBAL\Types\Type::* constant + * @param string|integer|null $type PDO::PARAM_* or \Doctrine\DBAL\Types\Type::* constant * * @return self */