Skip to content
Snippets Groups Projects
Commit 13d30c42 authored by Henrik Elsner's avatar Henrik Elsner Committed by Markus Klein
Browse files

[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: default avatarAnja Leichsenring <anja.leichsenring@typo3.com>
Tested-by: default avatarAnja Leichsenring <anja.leichsenring@typo3.com>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
parent e3fd3c7a
Branches
Tags
No related merge requests found
...@@ -916,11 +916,11 @@ class QueryBuilder ...@@ -916,11 +916,11 @@ class QueryBuilder
* Quotes a given input parameter. * Quotes a given input parameter.
* *
* @param mixed $input The parameter to be quoted. * @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 * @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); return $this->getConnection()->quote($input, $type);
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment