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

Dbal4 compat #253

Closed
wants to merge 2 commits into from
Closed

Dbal4 compat #253

wants to merge 2 commits into from

Conversation

greg0ire
Copy link

@greg0ire greg0ire commented Mar 12, 2024

Alternative to #247

Compatiliby with DBAL 3 is retained, so that it is possible to upgrade
this library without also having to upgrade DBAL.

Closes ramsey#246
@greg0ire greg0ire mentioned this pull request Mar 12, 2024
7 tasks
@@ -5,3 +5,9 @@ parameters:
paths:
- ./src
- ./tests
ignoreErrors:
# That class no longer holds methods in DBAL 4, but needs to be called with DBAL 3
- message: '#Call to an undefined static method Doctrine\\DBAL\\Types\\ConversionException::.*#'
Copy link
Contributor

Choose a reason for hiding this comment

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

@greg0ire this will throw an error when the method does exists (i,e in DBAL v4)

Copy link
Author

Choose a reason for hiding this comment

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

You're right. Either set reportUnmatchedErrors to false, or use different configs for different jobs, or run static analysis with only one version of DBAL.

Copy link
Contributor

Choose a reason for hiding this comment

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

Just did that ;)

Thanks!

@greg0ire greg0ire closed this Mar 13, 2024
@greg0ire greg0ire deleted the dbal4-compat branch March 13, 2024 11:03
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.

2 participants