Require the Solr package before creating the configuration files.
Tap homebrew/php before the Drush package.