-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Move doctrine/persistence to dev dependencies #269
Move doctrine/persistence to dev dependencies #269
Conversation
The dependency is not used in production code, only in DoctrineMongoODMModuleTest\Assets\CustomRepositoryFactory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By moving persistence to require-dev, we will automatically allow persistence v3 for this module, as upstream DoctrineModule allows either v2 or v3. Therefore, could you please change it to ^2.4.0 || ^3.0.0
? We will have to ensure that our unit tests run v3, otherwise this change could be harmful for users.
Co-authored-by: Dennis Riehle <webmaster@riehle-web.com>
The parameter cannot be typed here, to ensure compatibility of the test with both persistence v2 and v3. The typed parameters were only introduced with persistence v3.
I have fixed the issue with PhpStan, which was still present in this PR. Since this PR effectively adds a new feature, i.e. the support for persistence v3, we have to release it as a new minor release, i.e. 4.2.0 and not 4.1.2. Thank you, @MidnightDesign, for your time and contribution! |
@driehle Would it be possible to release 4.2? We're waiting for this change. Thanks! |
I am planning to first get #270 merged before releasing 4.2.0. However, I expect to make a release today or tomorrow. |
The dependency is not used in production code, only in DoctrineMongoODMModuleTest\Assets\CustomRepositoryFactory.