Skip to content

Commit e20a886

Browse files
authored
Merge pull request #12 from neronmoon/develop
Fix install issue
2 parents f8b59ba + aedb5ed commit e20a886

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ matrix:
66
- php: 5.6
77
- php: 7.0
88
- php: 7.1
9-
- php: hhvm
109

11-
script: python tests/tests.py
10+
script: python tests/tests.py

src/PackageScriptsExtractor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Composer\IO\IOInterface;
77
use Composer\Package\AliasPackage;
88
use Composer\Package\CompletePackage;
9-
use Composer\Package\Package;
9+
use Composer\Package\PackageInterface;
1010

1111
class PackageScriptsExtractor
1212
{
@@ -23,10 +23,10 @@ public function __construct(IOInterface $io)
2323
}
2424

2525
/**
26-
* @param Package $package
26+
* @param PackageInterface $package
2727
* @return array
2828
*/
29-
public function extract(Package $package)
29+
public function extract(PackageInterface $package)
3030
{
3131
// If we have extra.branch-alias, package will be an instanceof RootAliasPackage instead of RootPackage
3232
if ($package instanceof AliasPackage) {

0 commit comments

Comments
 (0)