Skip to content

Commit

Permalink
minor #32226 [travis] not all components have a master branch (nicola…
Browse files Browse the repository at this point in the history
…s-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
  • Loading branch information
fabpot committed Jun 27, 2019
2 parents eb438a4 + b73025a commit bcc66e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/build-packages.php
Expand Up @@ -57,7 +57,7 @@
$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'));
$versions = json_decode($versions)->packages->{$package->name};

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

Expand Down

0 comments on commit bcc66e3

Please sign in to comment.