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
User Deprecated: Doctrine\DBAL\Driver\PDO\SQLSrv\Statement::bindParam is deprecated. Use bindValue() instead. (Statement.php:48 called by Statement.php:107, #5563, package doctrine/dbal)
I have Symfony 6.4, doctrine/doctrine-bundle 2.11, doctrine/orm 2.17 and doctrine/dbal 3.8.0 but I keep getting this message.
Current behaviour
I keep seeing that in Statement.php bindParam keeps being called from bindValue.
public function bindValue($param, $value, $type = ParameterType::STRING): bool
{
if (func_num_args() < 3) {
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5558',
'Not passing $type to Statement::bindValue() is deprecated.'
. ' Pass the type corresponding to the parameter being bound.',
);
}
return $this->bindParam($param, $value, $type);
}
How can i solve this?
Thanks.
The text was updated successfully, but these errors were encountered:
Bug Report
Summary
User Deprecated: Doctrine\DBAL\Driver\PDO\SQLSrv\Statement::bindParam is deprecated. Use bindValue() instead. (Statement.php:48 called by Statement.php:107, #5563, package doctrine/dbal)
I have Symfony 6.4, doctrine/doctrine-bundle 2.11, doctrine/orm 2.17 and doctrine/dbal 3.8.0 but I keep getting this message.
Current behaviour
I keep seeing that in Statement.php bindParam keeps being called from bindValue.
How can i solve this?
Thanks.
The text was updated successfully, but these errors were encountered: