You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By using the Doctrine\DBAL\Driver\PDO\Statement::bindParam() method.
Expected behaviour
I don't know if it's known that this deprecation isn't fixed yet, it's intended to not have been fixed or that an issue already exists. But I couldn't find anything about it yet.
The text was updated successfully, but these errors were encountered:
By using the Doctrine\DBAL\Driver\PDO\Statement::bindParam() method.
I assume you're explicitly passing NULL to bindParam(), aren't you? For instance,
$value = 1;
$stmt = $connection->prepare('SELECT ?');
$stmt->bindParam(1, $value, ParameterType::INTEGER, null);
$stmt->executeQuery();
// Deprecated: PDOStatement::bindParam(): Passingnulltoparameter#4 ($maxLength) of type int is deprecated in /src/Driver/PDO/Statement.php
Bug Report
Summary
When running
doctrine/dbal
3.2.0
in PHP 8.1, a deprecation warning is thrown:Current behaviour
A deprecation warning is thrown.
How to reproduce
By using the
Doctrine\DBAL\Driver\PDO\Statement::bindParam()
method.Expected behaviour
I don't know if it's known that this deprecation isn't fixed yet, it's intended to not have been fixed or that an issue already exists. But I couldn't find anything about it yet.
The text was updated successfully, but these errors were encountered: