1
0
Fork 0

Merge pull request #1073 from Pawka/f-searchfix

Fatal on: ./composer.phar search something
pull/1084/merge
Jordi Boggiano 2012-09-07 11:25:16 -07:00
commit 509b8b9853
3 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ use Composer\Factory;
class SearchCommand extends Command
{
protected $matches;
protected $lowMatches;
protected $lowMatches = array();
protected $tokens;
protected $output;

View File

@ -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;
}
}

View File

@ -135,11 +135,11 @@ class ComposerRepository extends ArrayRepository implements NotifiableRepository
}
foreach ($this->rawData as $package) {
if (false === $callback($package = $this->loader->load($package, $class))) {
if (false === call_user_func($callback, $package = $this->loader->load($package, $class))) {
return false;
}
if ($package->getAlias()) {
if (false === $callback($this->createAliasPackage($package))) {
if (false === call_user_func($callback, $this->createAliasPackage($package))) {
return false;
}
}