You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 14, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: src/Symfony/Installer/NewCommand.php
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -111,8 +111,8 @@ protected function checkSymfonyVersionIsInstallable()
111
111
}
112
112
113
113
// validate semver syntax
114
-
if (!preg_match('/^2\.\d(?:\.\d{1,2})?(-(dev|BETA\d*))?$/i', $this->version)) {
115
-
thrownew \RuntimeException('The Symfony version should be 2.N or 2.N.M, where N = 0..9 and M = 0..99. The special "-dev" or "-BETA" suffixes are also supported.');
114
+
if (!preg_match('/^2\.\d(?:\.\d{1,2})?(?:-(?:dev|BETA\d*|RC\d*))?$/i', $this->version)) {
115
+
thrownew \RuntimeException('The Symfony version should be 2.N or 2.N.M, where N = 0..9 and M = 0..99. The special "-dev" "-BETA" and "-RC" suffixes are also supported.');
116
116
}
117
117
118
118
if (preg_match('/^2\.\d$/', $this->version)) {
@@ -183,8 +183,10 @@ protected function checkSymfonyVersionIsInstallable()
183
183
}
184
184
185
185
// warn the user when downloading an unstable version
186
-
if (preg_match('/^.*\-BETA\d*$/i', $this->version)) {
186
+
if (preg_match('/^.*\-(BETA|RC)\d*$/i', $this->version)) {
187
187
$this->output->writeln("\n <bg=red> WARNING </> You are downloading an unstable Symfony version.");
188
+
// versions provided by the download server are case sensitive
0 commit comments