Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit 4c26d2b

Browse files
committed
Warn the user when downloading an unstable version
1 parent 94a1f98 commit 4c26d2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Installer/NewCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@ protected function checkSymfonyVersionIsInstallable()
171171
));
172172
}
173173

174+
// warn the user when downloading an unstable version
175+
if (preg_match('/^.*\-(dev|BETA)\d*$/', $this->version)) {
176+
$this->output->writeln("\n <bg=red> WARNING </> You are downloading an unstable Symfony version.");
177+
}
178+
174179
return $this;
175180
}
176181

0 commit comments

Comments
 (0)