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

drush core:status no longer works in Drush 11 with non-core db drivers #5023

Merged
merged 1 commit into from Jan 17, 2022
Merged

drush core:status no longer works in Drush 11 with non-core db drivers #5023

merged 1 commit into from Jan 17, 2022

Conversation

mondrake
Copy link
Contributor

drush core:status worked in Drush 10 with a non-core db driver, but on Drush 11 it fails with

TypeError: Drush\Sql\SqlBase::getInstance(): Return value must be of type ?Drush\Sql\SqlBase, none returned in Drush\Sql\SqlBase::getInstance() (line 114 of /home/runner/work/drudbal/drudbal/vendor/drush/drush/src/Sql/SqlBase.php).

This seems due to introduced return typehinting in the getInstance() method. It is set to ?self but if the driver class is missing there is no return stament called hence the TypeError.

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.

None yet

2 participants