fix: unfreeze DependencyFactory after command#1528
Open
nikophil wants to merge 2 commits intodoctrine:3.9.xfrom
Open
fix: unfreeze DependencyFactory after command#1528nikophil wants to merge 2 commits intodoctrine:3.9.xfrom
DependencyFactory after command#1528nikophil wants to merge 2 commits intodoctrine:3.9.xfrom
Conversation
e4ec2f3 to
458c7bf
Compare
DependencyFactory after command
nikophil
commented
Oct 4, 2025
dd3e71d to
83a2951
Compare
83a2951 to
f7f8e8c
Compare
Author
|
I fixed phpstan failures, which are due to a new phpstan version |
Member
|
It seems there are CI jobs failing. Please take a look at this guide for more on how to handle those. Specifically this part |
63abad1 to
d717a90
Compare
Author
|
cs fixed 👍 |
greg0ire
approved these changes
Oct 11, 2025
Member
|
@goetas @VincentLanglet please review |
VincentLanglet
approved these changes
Oct 11, 2025
derrabus
reviewed
Oct 12, 2025
| } | ||
| } | ||
|
|
||
| abstract protected function doExecute(InputInterface $input, OutputInterface $output): int; |
Member
There was a problem hiding this comment.
Introducing a new abstract function (to a class that is not internal) is a BC break, isn't it?
Author
There was a problem hiding this comment.
yeah you're right, I acted as this class was internal.
that's strange that roave-backward-compatibility-check workflow did not see it
I've made the method concrete, and it now directly throws an exception. I think this is not a BC anymore
d717a90 to
5f7cb42
Compare
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When a migration command runs, the
DependencyFactoryis frozen, but never "unfrozen", so it cannot be run several times programmatically, like we would need in Foundry.I propose to unfreeze at the end of all commands, but I'd be also OK to only do it in
doctrine:migration:migrate