Commit 8eeba23
committed
This PR was submitted for the 6.3 branch but it was squashed and merged into the 6.2 branch instead.
Discussion
----------
Fix `doctrine/dbal` deprecation using `Statement::executeQuery`
Deprecation warning when `doctrine/dbal >= 3.4.*`.
In Symfony docs,executeQuery() is mentionned here : [Querying with SQL](https://symfony.com/doc/current/doctrine.html#querying-with-sql).
But since `3.4.*` passing parameters to `Statement::execute*()` functions is deprecated by `doctrine/dbal` with this warning:
`User Deprecated: Passing $params to Statement::executeQuery() is deprecated. Bind parameters using Statement::bindParam() or Statement::bindValue() instead. (Statement.php:212 called by User.php:40, doctrine/dbal#5556, package doctrine/dbal)`.
I've already ask in the [DBAL PR concerned](doctrine/dbal#5556 (comment)) how to use `executeQuery` from now on.

[(in the same PR)](doctrine/dbal#5556 (comment))
So, after having tested it in a prod project, I propose an update of the doc in this sense.
Thanks again `@derrabus` 🙏
Commits
-------
5c8154b Fix `doctrine/dbal` deprecation using `Statement::executeQuery`
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
1001 | | - | |
1002 | | - | |
| 1001 | + | |
| 1002 | + | |
1003 | 1003 | | |
1004 | 1004 | | |
1005 | 1005 | | |
| |||
0 commit comments