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

Update deps + test on dbal v3 #87

Merged
merged 1 commit into from
Jun 8, 2024
Merged

Conversation

aszenz
Copy link

@aszenz aszenz commented Feb 11, 2024

After updating schema-analyzer in thecodingmachine/schema-analyzer#13

Follow up of 0c0ab13 to support v2 of schema analyzer

  • Updates dev deps
  • Fixes coverage in ci
  • Migrate phpunit config to newer schema
  • Ignore unmatched errors in phpstan
  • Adds asserts to fix phpstan errors
  • Fixes methods accessing dbal v3
  • Use mysql80/postgressql10 platforms (the normal ones throwed class not found exception)
  • Add test script to test with myql locally

- Updates dev deps
- Fixes coverage in ci
- Migrate phpunit config to newer schema
- Ignore unmatched errors in phpstan
- Adds asserts to fix phpstan errors
- Fixes methods accessing dbal v3
- Use mysql80/postgressql10 platforms
Copy link
Collaborator

@homersimpsons homersimpsons left a comment

Choose a reason for hiding this comment

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

Thank you for your work on this! (sorry for the late review)

The changes are quite good!

tests/phpunit-mysql8.sh Show resolved Hide resolved
# Let's wait for MySQL 8 to start
sleep 20

vendor/bin/phpunit -c phpunit.xml.dist $NO_COVERAGE
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is this $NO_COVERAGE variable ? Can you document it at the beginning of the file ?

Copy link
Author

Choose a reason for hiding this comment

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

It's just a way to pass arguments to phpunit, NO_COVERAGE=--no-coverage, since it's a dev script, i don't think it's worth documenting

Copy link
Collaborator

Choose a reason for hiding this comment

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

It could just be a $PHPUNIT_ARG looking at the position? Or $PHPUNIT_EXTRA_ARG?

src/Mouf/Database/MagicQuery.php Show resolved Hide resolved
phpstan.neon Show resolved Hide resolved
@aszenz aszenz requested a review from homersimpsons May 23, 2024 09:39
Copy link
Collaborator

@homersimpsons homersimpsons left a comment

Choose a reason for hiding this comment

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

@aszenz Thank you for your contribution to upgrade the whole TDBM stack to DBAL 3!

Released in https://github.com/thecodingmachine/magic-query/releases/tag/v2.0.0-beta.2

@homersimpsons homersimpsons merged commit 37cf04d into thecodingmachine:2.0 Jun 8, 2024
6 checks passed
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