Pass the correct values to the next command in the

...chain
This commit is contained in:
Oliver Davies 2024-10-31 12:00:00 +00:00
parent 2b180e967c
commit 05f7c2b609
2 changed files with 3 additions and 3 deletions

View file

@ -29,6 +29,6 @@ final class RemoveIgnoredFilesCommand
return !collect($this->filenames)->contains($templateFile->name); return !collect($this->filenames)->contains($templateFile->name);
}); });
return $next([$configurationDataDto, $filesToGenerate]); return $next([$configurationData, $configurationDataDto, $filesToGenerate]);
} }
} }

View file

@ -18,8 +18,8 @@ class RemoveIgnoredFilesCommandTest extends KernelTestCase
$command = new RemoveIgnoredFilesCommand($filenamesToIgnore); $command = new RemoveIgnoredFilesCommand($filenamesToIgnore);
$command->execute([[], [], $filenamesToGenerate], function ($result) { $command->execute([[], [], $filenamesToGenerate], function ($result) {
self::assertCount(1, $result[1]); self::assertCount(1, $result[2]);
self::assertSame('phpcs.xml.dist', $result[1][0]->name); self::assertSame('phpcs.xml.dist', $result[2][0]->name);
}); });
} }
} }