minor #25833 fix the Composer API being used (xabbuh)
This PR was merged into the 2.7 branch.
Discussion
----------
fix the Composer API being used
| Q | A
| ------------- | ---
| Branch? | 2.7
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
Commits
-------
a986efef0a
fix the Composer API being used
This commit is contained in:
commit
5d39415e3d
4
.github/build-packages.php
vendored
4
.github/build-packages.php
vendored
@ -49,8 +49,8 @@ foreach ($dirs as $k => $dir) {
|
|||||||
|
|
||||||
$packages[$package->name][$package->version] = $package;
|
$packages[$package->name][$package->version] = $package;
|
||||||
|
|
||||||
$versions = file_get_contents('https://packagist.org/packages/'.$package->name.'.json');
|
$versions = file_get_contents('https://packagist.org/p/'.$package->name.'.json');
|
||||||
$versions = json_decode($versions)->package->versions;
|
$versions = json_decode($versions)->packages->{$package->name};
|
||||||
|
|
||||||
if ($package->version === str_replace('-dev', '.x-dev', $versions->{'dev-master'}->extra->{'branch-alias'}->{'dev-master'})) {
|
if ($package->version === str_replace('-dev', '.x-dev', $versions->{'dev-master'}->extra->{'branch-alias'}->{'dev-master'})) {
|
||||||
unset($versions->{'dev-master'});
|
unset($versions->{'dev-master'});
|
||||||
|
Reference in New Issue
Block a user