-
Notifications
You must be signed in to change notification settings - Fork 45
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
[Bug]: Undeclared dependency on doctrine/dbal ^3.1.0 | ^4.0.1 #276
Comments
IIRC, these dependencies weren't required because the bundle can be loaded without these dependencies. Then people were expected to add the required dependencies when using the bundle: https://github.com/liip/LiipTestFixturesBundle/blob/2.x/doc/database.md But the doc is unclear about the Composer dependencies and as you said the DX is not great. So it would be better to Would you be able to open a PR to update the dependencies? |
You can use the There's already a conflict here for the DBAL for
I would personally argue for the first option, as well as ensuring conflicts are configured for all optional dependencies. Looking at the latest merge to the 2.x branch, the PHP 7.4 build with the
Some of these are much more recent than the lowest versions in |
Preconditions
I've been upgrading old project and I began suddenly getting errors
Later I've found that newest
liip/test-fixtures-bundle 2.7.3
does not work with my currentdoctrine/dbal 2.13.9
becauseliip/test-fixtures-bundle
has, based on this commit doctrine/dbal@79ee9d0, undeclared dependency ondoctrine/dbal ^3.1.0 | ^4.0.1
Steps to reproduce
Have project with
liip/test-fixtures-bundle 2.7.3
anddoctrine/dbal 2.13.9
and run tests.Expected result
Composer should not allow me such combination even install. Alternatively
liip/test-fixtures-bundle
should throw exception that it needs specific version ofdoctrine/dbal
.Actual result
Error: Call to undefined method Doctrine\DBAL\Connection::createSchemaManager()
The text was updated successfully, but these errors were encountered: