Skip to content

Commit bcc66e3

Browse files
committed
minor symfony#32226 [travis] not all components have a master branch (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [travis] not all components have a master branch | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- b73025a [travis] not all components have a master branch
2 parents eb438a4 + b73025a commit bcc66e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/build-packages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
$versions = @file_get_contents('https://repo.packagist.org/p/'.$package->name.'.json') ?: sprintf('{"packages":{"%s":{"dev-master":%s}}}', $package->name, file_get_contents($dir.'/composer.json'));
5858
$versions = json_decode($versions)->packages->{$package->name};
5959

60-
if ($package->version === str_replace('-dev', '.x-dev', $versions->{'dev-master'}->extra->{'branch-alias'}->{'dev-master'})) {
60+
if (isset($versions->{'dev-master'}) && $package->version === str_replace('-dev', '.x-dev', $versions->{'dev-master'}->extra->{'branch-alias'}->{'dev-master'})) {
6161
unset($versions->{'dev-master'});
6262
}
6363

0 commit comments

Comments
 (0)