mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Issue #1056. Fixed callback call error on search command.
This commit is contained in:
parent
0689e24e83
commit
57d1b5a37d
2 changed files with 3 additions and 3 deletions
|
@ -118,7 +118,7 @@ class ArrayRepository implements RepositoryInterface
|
|||
public function filterPackages($callback, $class = 'Composer\Package\Package')
|
||||
{
|
||||
foreach ($this->getPackages() as $package) {
|
||||
if (false === $callback($package)) {
|
||||
if (false === call_user_func($callback, $package)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue