From 13d30c4233e93d3437b8c4cdb0a813fddf0cf4a8 Mon Sep 17 00:00:00 2001 From: Henrik Elsner <helsner@dfau.de> Date: Mon, 19 Jun 2017 12:56:00 +0200 Subject: [PATCH] [BUGFIX] Fix wrong parameter type The quoting parameter constants \PDO::PARAM_* are in fact integers. The annotation shipped with doctrine says string, and the strict type processing in core leads to a wrong parameter error. Changing the strict type to int, as would be correct, solves the problem. Releases: master, 8.7 Resolves: #81613 Change-Id: Ic327b2d761b74868cc46d781acab1f4fd9e6cfdb Reviewed-on: https://review.typo3.org/53260 Reviewed-by: Anja Leichsenring <anja.leichsenring@typo3.com> Tested-by: Anja Leichsenring <anja.leichsenring@typo3.com> Reviewed-by: Markus Klein <markus.klein@typo3.org> Tested-by: Markus Klein <markus.klein@typo3.org> Tested-by: TYPO3com <no-reply@typo3.com> --- typo3/sysext/core/Classes/Database/Query/QueryBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/core/Classes/Database/Query/QueryBuilder.php b/typo3/sysext/core/Classes/Database/Query/QueryBuilder.php index 8b2b5538fd85..ffcce83f1f4b 100644 --- a/typo3/sysext/core/Classes/Database/Query/QueryBuilder.php +++ b/typo3/sysext/core/Classes/Database/Query/QueryBuilder.php @@ -916,11 +916,11 @@ class QueryBuilder * Quotes a given input parameter. * * @param mixed $input The parameter to be quoted. - * @param string|null $type The type of the parameter. + * @param int|null $type The type of the parameter. * * @return mixed Often string, but also int or float or similar depending on $input and platform */ - public function quote($input, string $type = null) + public function quote($input, int $type = null) { return $this->getConnection()->quote($input, $type); } -- GitLab