Skip to content

Merge 3.4.x into 3.5.x #5673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Sep 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
"require-dev": {
"doctrine/coding-standard": "10.0.0",
"jetbrains/phpstorm-stubs": "2022.2",
"phpstan/phpstan": "1.8.2",
"phpstan/phpstan": "1.8.3",
"phpstan/phpstan-strict-rules": "^1.3",
"phpunit/phpunit": "9.5.21",
"phpunit/phpunit": "9.5.24",
"psalm/plugin-phpunit": "0.17.0",
"squizlabs/php_codesniffer": "3.7.1",
"symfony/cache": "^5.4|^6.0",
"symfony/console": "^4.4|^5.4|^6.0",
"vimeo/psalm": "4.24.0"
"vimeo/psalm": "4.27.0"
},
"suggest": {
"symfony/console": "For helpful console commands such as SQL execution and import of files."
Expand Down
6 changes: 0 additions & 6 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ parameters:
-
message: '~^Only booleans are allowed in .*, mixed given~'
paths:
- src/Driver/*/Driver.php
- src/Platforms/*Platform.php
- src/Query/QueryBuilder.php
- src/Schema/*SchemaManager.php
Expand Down Expand Up @@ -101,11 +100,6 @@ parameters:
- src/Driver/Mysqli/Exception/InvalidCharset.php
- src/Driver/Mysqli/Exception/StatementError.php

-
message: '~^Unable to resolve the template type T in call to method Doctrine\\DBAL\\Portability\\Converter\:\:compose\(\)$~'
paths:
- src/Portability/Converter.php

# Type check for legacy implementations of the Connection interface
# TODO: remove in 4.0.0
- "~Call to function method_exists\\(\\) with Doctrine\\\\DBAL\\\\Driver\\\\Connection and 'getNativeConnection' will always evaluate to true\\.~"
Expand Down
2 changes: 1 addition & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ private function getServerVersion()

Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4750',
'https://github.com/doctrine/dbal/pull/4750',
'Not implementing the ServerInfoAwareConnection interface in %s is deprecated',
get_class($connection),
);
Expand Down
2 changes: 1 addition & 1 deletion src/Platforms/AbstractMySQLPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public function prefersIdentityColumns()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/1519',
'https://github.com/doctrine/dbal/pull/1519',
'AbstractMySQLPlatform::prefersIdentityColumns() is deprecated.',
);

Expand Down
68 changes: 34 additions & 34 deletions src/Platforms/AbstractPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ public function getSqlCommentStartString()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getSqlCommentStartString() is deprecated.',
);

Expand All @@ -609,7 +609,7 @@ public function getSqlCommentEndString()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getSqlCommentEndString() is deprecated.',
);

Expand Down Expand Up @@ -715,7 +715,7 @@ public function getWildcards()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getWildcards() is deprecated.'
. ' Use AbstractPlatform::getLikeWildcardCharacters() instead.',
);
Expand Down Expand Up @@ -748,7 +748,7 @@ public function getAvgExpression($column)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getAvgExpression() is deprecated. Use AVG() in SQL instead.',
);

Expand All @@ -770,7 +770,7 @@ public function getCountExpression($column)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getCountExpression() is deprecated. Use COUNT() in SQL instead.',
);

Expand All @@ -790,7 +790,7 @@ public function getMaxExpression($column)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getMaxExpression() is deprecated. Use MAX() in SQL instead.',
);

Expand All @@ -810,7 +810,7 @@ public function getMinExpression($column)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getMinExpression() is deprecated. Use MIN() in SQL instead.',
);

Expand All @@ -830,7 +830,7 @@ public function getSumExpression($column)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getSumExpression() is deprecated. Use SUM() in SQL instead.',
);

Expand All @@ -854,7 +854,7 @@ public function getMd5Expression($column)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getMd5Expression() is deprecated.',
);

Expand Down Expand Up @@ -886,7 +886,7 @@ public function getSqrtExpression($column)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getSqrtExpression() is deprecated. Use SQRT() in SQL instead.',
);

Expand All @@ -907,7 +907,7 @@ public function getRoundExpression($column, $decimals = 0)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getRoundExpression() is deprecated. Use ROUND() in SQL instead.',
);

Expand Down Expand Up @@ -978,7 +978,7 @@ public function getRtrimExpression($str)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getRtrimExpression() is deprecated. Use RTRIM() in SQL instead.',
);

Expand All @@ -998,7 +998,7 @@ public function getLtrimExpression($str)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getLtrimExpression() is deprecated. Use LTRIM() in SQL instead.',
);

Expand All @@ -1019,7 +1019,7 @@ public function getUpperExpression($str)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getUpperExpression() is deprecated. Use UPPER() in SQL instead.',
);

Expand All @@ -1040,7 +1040,7 @@ public function getLowerExpression($str)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getLowerExpression() is deprecated. Use LOWER() in SQL instead.',
);

Expand Down Expand Up @@ -1136,7 +1136,7 @@ public function getNotExpression($expression)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getNotExpression() is deprecated. Use NOT() in SQL instead.',
);

Expand All @@ -1156,7 +1156,7 @@ public function getIsNullExpression($expression)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getIsNullExpression() is deprecated. Use IS NULL in SQL instead.',
);

Expand All @@ -1176,7 +1176,7 @@ public function getIsNotNullExpression($expression)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getIsNotNullExpression() is deprecated. Use IS NOT NULL in SQL instead.',
);

Expand Down Expand Up @@ -1204,7 +1204,7 @@ public function getBetweenExpression($expression, $value1, $value2)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getBetweenExpression() is deprecated. Use BETWEEN in SQL instead.',
);

Expand All @@ -1224,7 +1224,7 @@ public function getAcosExpression($value)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getAcosExpression() is deprecated. Use ACOS() in SQL instead.',
);

Expand All @@ -1244,7 +1244,7 @@ public function getSinExpression($value)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getSinExpression() is deprecated. Use SIN() in SQL instead.',
);

Expand All @@ -1262,7 +1262,7 @@ public function getPiExpression()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getPiExpression() is deprecated. Use PI() in SQL instead.',
);

Expand All @@ -1282,7 +1282,7 @@ public function getCosExpression($value)
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getCosExpression() is deprecated. Use COS() in SQL instead.',
);

Expand Down Expand Up @@ -3135,7 +3135,7 @@ public function getTemporaryTableSQL()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getTemporaryTableSQL() is deprecated.',
);

Expand Down Expand Up @@ -3264,7 +3264,7 @@ public function getUniqueFieldDeclarationSQL()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getUniqueFieldDeclarationSQL() is deprecated. Use UNIQUE in SQL instead.',
);

Expand Down Expand Up @@ -3311,7 +3311,7 @@ public function prefersIdentityColumns()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/1519',
'https://github.com/doctrine/dbal/pull/1519',
'AbstractPlatform::prefersIdentityColumns() is deprecated.',
);

Expand Down Expand Up @@ -3536,7 +3536,7 @@ public function getListUsersSQL()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::getListUsersSQL() is deprecated.',
);

Expand Down Expand Up @@ -3835,7 +3835,7 @@ public function supportsIndexes()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::supportsIndexes() is deprecated.',
);

Expand Down Expand Up @@ -3871,7 +3871,7 @@ public function supportsAlterTable()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::supportsAlterTable() is deprecated. All platforms must implement altering tables.',
);

Expand All @@ -3889,7 +3889,7 @@ public function supportsTransactions()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::supportsTransactions() is deprecated.',
);

Expand Down Expand Up @@ -3927,7 +3927,7 @@ public function supportsPrimaryConstraints()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::supportsPrimaryConstraints() is deprecated.',
);

Expand Down Expand Up @@ -4029,7 +4029,7 @@ public function supportsGettingAffectedRows()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::supportsGettingAffectedRows() is deprecated.',
);

Expand Down Expand Up @@ -4105,7 +4105,7 @@ public function supportsViews()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::supportsViews() is deprecated. All platforms must implement support for views.',
);

Expand Down Expand Up @@ -4231,7 +4231,7 @@ public function supportsLimitOffset()
{
Deprecation::triggerIfCalledFromOutside(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/4724',
'https://github.com/doctrine/dbal/pull/4724',
'AbstractPlatform::supportsViews() is deprecated.'
. ' All platforms must implement support for offsets in modify limit clauses.',
);
Expand Down
2 changes: 1 addition & 1 deletion src/Platforms/DB2Platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ public function prefersIdentityColumns()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/1519',
'https://github.com/doctrine/dbal/pull/1519',
'DB2Platform::prefersIdentityColumns() is deprecated.',
);

Expand Down
2 changes: 1 addition & 1 deletion src/Platforms/SQLServerPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function prefersIdentityColumns()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/1519',
'https://github.com/doctrine/dbal/pull/1519',
'SQLServerPlatform::prefersIdentityColumns() is deprecated.',
);

Expand Down
2 changes: 1 addition & 1 deletion src/Platforms/SqlitePlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function prefersIdentityColumns()
{
Deprecation::trigger(
'doctrine/dbal',
'https://github.com/doctrine/dbal/pulls/1519',
'https://github.com/doctrine/dbal/pull/1519',
'SqlitePlatform::prefersIdentityColumns() is deprecated.',
);

Expand Down
Loading