com web/php: Allow bin/bumpReleases to work with new major versions: bin/bumpRelease
| From: | Sara Golemon | Date: | Thu, 07 Jan 2021 18:22:36 +0000 |
| Subject: | com web/php: Allow bin/bumpReleases to work with new major versions: bin/bumpRelease | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-29054@lists.php.net to get a copy of this message | ||
Commit: f4dfa851e2ebdab70352658a40e006f3d7b106d4
Author: Sara Golemon <pollita@php.net> Thu, 7 Jan 2021 18:22:36 +0000
Parents: 527e1f4a06f95251e3264d696145f11f70c25843
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=f4dfa851e2ebdab70352658a40e006f3d7b106d4
Log:
Allow bin/bumpReleases to work with new major versions
Changed paths:
M bin/bumpRelease
Diff:
diff --git a/bin/bumpRelease b/bin/bumpRelease
index 68fcd7454..2c0009a52 100755
--- a/bin/bumpRelease
+++ b/bin/bumpRelease
@@ -30,7 +30,7 @@ if (is_bool($info["announcement"]) &&
$info["announcement"]) {
$OLDRELEASES[$major] = array_merge(
array($version => $info),
- $OLDRELEASES[$major]
+ $OLDRELEASES[$major] ?? []
);
file_put_contents(__DIR__ . "/../include/releases.inc", [