-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix typed property must not be accessed before initialization error when using --list option #183
Conversation
Fix typed property must not be accessed before initialization error when using --list option
Hello @iNem0o, thanks, your PR seems fine, please fix the minor comments and it's all good. Pipeline failure seems unrelated, we'll see how it behave on your next push. If it continues to fail I'll pull your branch and test on my side to be sure it's completely unrelated. |
Hello @pounard, I have made the requested changes as per your feedback. |
@iNem0o thanks, I'll review this tomorrow. |
@iNem0o Thanks! I'll add a line in the changelog file. |
…rror when using --list option
Hello
When using the
db-tools:restore --list
command, in thelistBackup()
method the$this->restorer
variable is not inited yet which lead to a fatal error.https://github.com/makinacorpus/DbToolsBundle/blob/main/src/Command/RestoreCommand.php#L97
As the restorer is inited lately in the main process
https://github.com/makinacorpus/DbToolsBundle/blob/main/src/Command/RestoreCommand.php#L110
i added the same call to the factory inside the
listBackups()
method to fix and tests case for the --list option