Skip to content

Commit

Permalink
Fix deprecation message Parameter::STRING -> ParameterType::STRING (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
dritter authored Jan 19, 2024
1 parent 3a34a86 commit 81502f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ The `Connection::ARRAY_PARAM_OFFSET` constant has been marked as internal. It wi

## Deprecated using NULL as prepared statement parameter type.

Omit the type or use `Parameter::STRING` instead.
Omit the type or use `ParameterType::STRING` instead.

## Deprecated passing asset names as assets in `AbstractPlatform` and `AbstractSchemaManager` methods.

Expand Down
4 changes: 2 additions & 2 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ private function bindParameters(DriverStatement $stmt, array $params, array $typ
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5550',
'Using NULL as prepared statement parameter type is deprecated.'
. 'Omit or use Parameter::STRING instead',
. 'Omit or use ParameterType::STRING instead',
);
}

Expand All @@ -1817,7 +1817,7 @@ private function bindParameters(DriverStatement $stmt, array $params, array $typ
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5550',
'Using NULL as prepared statement parameter type is deprecated.'
. 'Omit or use Parameter::STRING instead',
. 'Omit or use ParameterType::STRING instead',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Query/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ public function setParameter($key, $value, $type = ParameterType::STRING)
'doctrine/dbal',
'https://github.com/doctrine/dbal/pull/5550',
'Using NULL as prepared statement parameter type is deprecated.'
. 'Omit or use Parameter::STRING instead',
. 'Omit or use ParameterType::STRING instead',
);
}

Expand Down

0 comments on commit 81502f0

Please sign in to comment.