['target' => $target]], $dir, $dir, $coverage); } $str = (string) $target; $packages["php"] = ">=${str[0]}.${str[1]}"; if (!empty($packages)) { $cmd = "composer require "; foreach ($packages as $package => $constraint) { $cmd .= \escapeshellarg("{$package}:{$constraint}")." "; } \passthru($cmd); } \passthru("composer cs-fix"); if (!$dry) { \passthru("git add -A"); \passthru("git commit -m ".\escapeshellarg("phabel.io: transpile to $target")); } } if (!$dry) { \passthru("git push -f origin ".\escapeshellarg("phabel_tmp:{$branch}-{$target}")); \passthru("git checkout ".\escapeshellarg($branch)); \passthru("git branch -D phabel_tmp"); } \passthru("git reset --hard"); } \passthru("git stash pop");