Skip to content
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

Address or ignore deprecations #1226

Merged
merged 1 commit into from
Jan 12, 2022
Merged

Address or ignore deprecations #1226

merged 1 commit into from
Jan 12, 2022

Conversation

greg0ire
Copy link
Member

@greg0ire greg0ire commented Jan 11, 2022

Summary

It should be noted that this changes the generated SQL inside migrations
so that it does not generate code that triggers deprecations.

Closes #1218

# Switch to Logging\Connection after dropping compatibility with DBAL 2
-
message: '~deprecated.*DebugStack~'
path: tests/Doctrine/Migrations/Tests/Metadata/Storage/TableMetadataStorageTest.php
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test relies on the DebugStack to determine how many queries were performed.

@@ -23,3 +23,14 @@ parameters:
- tests/Doctrine/Migrations/Tests/Tools/Console/legacy-config-dbal/cli-config.php
- tests/Doctrine/Migrations/Tests/Tools/Console/legacy-config-wrong/cli-config.php

# We need to implement platform-aware comparison
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to impactful to do in this pull request. Not sure it would qualify as a bugfix either (but then neither does addressing a deprecation if you ask me).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping track of this at #1227

phpstan-dbal-2.neon.dist Outdated Show resolved Hide resolved
It should be noted that this changes the generated SQL inside migrations
so that it does not generate code that triggers deprecations.
@stof
Copy link
Member

stof commented Jan 12, 2022

this seems to close #1218

@greg0ire greg0ire merged commit 17fe70f into doctrine:3.3.x Jan 12, 2022
@greg0ire greg0ire deleted the fix-build branch January 12, 2022 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQL generator relies on deprecated AbstractPlatform::getName()
2 participants