Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amend getStaticPackages() to use PackageInterface #6

Merged
merged 1 commit into from
Oct 8, 2015

Conversation

adam-paterson
Copy link
Contributor

When an instance of \Composer\Package\AliasPackage is found getStaticPackages() throws an exception.

All packages are required to implement \Composer\Package\PackageInterface so it makes more sense for the closure argument to require that instead.

@adam-paterson adam-paterson changed the title Amend getStaticPackages() to use PackageInterface Amend getStaticPackages() to use PackageInterface Sep 30, 2015
@AydinHassan
Copy link
Contributor

Yo @adam-paterson Could you add a test with an AliasPackage ?

@adam-paterson
Copy link
Contributor Author

@AydinHassan Sure thing

When an instance of `\Composer\Package\AliasPackage` is found `getStaticPackages()` throws an exception.
All packages are required to implement `\Composer\Package\PackageInterface` so it makes more sense for the closure
arguement to require that instead.
@adam-paterson adam-paterson force-pushed the hotfix/package-interface branch from 858225b to 2b1c3fd Compare October 7, 2015 12:35
@adam-paterson
Copy link
Contributor Author

@AydinHassan let me know if the test meets your expectations? It'd be nice to remove the repo declaration from my project. <3

@AydinHassan
Copy link
Contributor

yeah perfect @adam-paterson , thank you :)

AydinHassan added a commit that referenced this pull request Oct 8, 2015
Amend getStaticPackages() to use PackageInterface
@AydinHassan AydinHassan merged commit 5295ce2 into WeareJH:master Oct 8, 2015
@AydinHassan
Copy link
Contributor

@adam-paterson just tagged 2.2.3

@adam-paterson
Copy link
Contributor Author

@AydinHassan Thanks mate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants