Skip to content

Commit 750d846

Browse files
committed
Merge branch '3.7.x' into 3.8.x
* 3.7.x: Fix deprecation message Parameter::STRING -> ParameterType::STRING (#6264)
2 parents 98f458c + 81502f0 commit 750d846

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

UPGRADE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ The `Connection::ARRAY_PARAM_OFFSET` constant has been marked as internal. It wi
456456

457457
## Deprecated using NULL as prepared statement parameter type.
458458

459-
Omit the type or use `Parameter::STRING` instead.
459+
Omit the type or use `ParameterType::STRING` instead.
460460

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

src/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,7 +1794,7 @@ private function bindParameters(DriverStatement $stmt, array $params, array $typ
17941794
'doctrine/dbal',
17951795
'https://github.com/doctrine/dbal/pull/5550',
17961796
'Using NULL as prepared statement parameter type is deprecated.'
1797-
. 'Omit or use Parameter::STRING instead',
1797+
. 'Omit or use ParameterType::STRING instead',
17981798
);
17991799
}
18001800

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

src/Query/QueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ public function setParameter($key, $value, $type = ParameterType::STRING)
461461
'doctrine/dbal',
462462
'https://github.com/doctrine/dbal/pull/5550',
463463
'Using NULL as prepared statement parameter type is deprecated.'
464-
. 'Omit or use Parameter::STRING instead',
464+
. 'Omit or use ParameterType::STRING instead',
465465
);
466466
}
467467

0 commit comments

Comments
 (0)