@@ -106,8 +106,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
106
106
107
107
$ this ->stdErr ->writeln ("Creating Drush aliases in the group <info>@ $ new_group</info> " );
108
108
109
- $ questionHelper = $ this ->questionHelper ;
110
-
111
109
if ($ new_group !== $ current_group ) {
112
110
$ existing = $ this ->drush ->getAliases ($ new_group );
113
111
if (!empty ($ existing )) {
@@ -175,7 +173,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
175
173
176
174
$ this ->drush ->createAliases ($ project , $ projectRoot , $ environments , $ current_group );
177
175
178
- $ this ->ensureDrushConfig ($ this -> drush );
176
+ $ this ->ensureDrushConfig ();
179
177
180
178
if ($ new_group !== $ current_group && !empty ($ aliases )) {
181
179
if ($ this ->questionHelper ->confirm ("Delete old Drush alias group <info>@ $ current_group</info>? " )) {
@@ -203,7 +201,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
203
201
/**
204
202
* Ensures that the .drush/drush.yml file has the right config.
205
203
*/
206
- protected function ensureDrushConfig (Drush $ drush ): void
204
+ protected function ensureDrushConfig (): void
207
205
{
208
206
if (!is_dir ($ this ->drush ->getSiteAliasDir ())) {
209
207
return ;
@@ -228,8 +226,7 @@ protected function ensureDrushConfig(Drush $drush): void
228
226
229
227
$ drushConfig ['drush ' ]['paths ' ]['alias-path ' ][] = $ aliasPath ;
230
228
231
- $ fs = $ this ->filesystem ;
232
- $ fs ->writeFile ($ drushYml , Yaml::dump ($ drushConfig , 5 ));
229
+ $ this ->filesystem ->writeFile ($ drushYml , Yaml::dump ($ drushConfig , 5 ));
233
230
}
234
231
}
235
232
0 commit comments