Skip to content

Commit 3b90287

Browse files
committed
Fix deprecation: Deprecated: PDOStatement::bindParam(): Passing null to parameter getsentry#4 ($maxLength) of type int is deprecated in ./vendor/doctrine/dbal/src/Driver/PDO/Statement.php on line 83
1 parent 2d30164 commit 3b90287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tracing/Doctrine/DBAL/TracingStatementForV3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function bindValue($param, $value, $type = ParameterType::STRING): bool
2727
*/
2828
public function bindParam($param, &$variable, $type = ParameterType::STRING, $length = null): bool
2929
{
30-
return $this->decoratedStatement->bindParam($param, $variable, $type, $length);
30+
return $this->decoratedStatement->bindParam($param, $variable, $type, ...array_slice(func_get_args(), 3));
3131
}
3232

3333
/**

0 commit comments

Comments
 (0)