diff --git a/src/Task/UpdateComposerDevPackageVersion.php b/src/Task/UpdateComposerDevPackageVersion.php new file mode 100644 index 0000000..ac823fe --- /dev/null +++ b/src/Task/UpdateComposerDevPackageVersion.php @@ -0,0 +1,40 @@ +packages as $package => $version) { + $this->update($path, $package, $version); + } + } + + #[Override] + public function packages(): array + { + return $this->packages; + } + + private function update(string $path, string $package, string $version): void + { + (new Process(['composer', 'require', '--dev', sprintf('%s:%s', $package, $version)], $path))->mustRun(); + } +}