fxpio / composer-asset-plugin

NPM/Bower Dependency Manager for Composer
MIT License
893 stars 156 forks source link

Cannot global require "composer-asset-plugin" #232

Closed GinoPane closed 8 years ago

GinoPane commented 8 years ago

Hello! While doing:

composer global require "fxp/composer-asset/plugin"

I always get such errors:

Using version ^1.1 for fxp/composer-asset-plugin
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing fxp/composer-asset-plugin (v1.1.4)
    Loading from cache

PHP Fatal error:  Declaration of Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository::search($query, $mode = 0) must be compatible with Composer\Repository\RepositoryInterface::search($query, $mode = 0, $type = NULL) in /home/vagrant/.composer/vendor/fxp/composer-asset-plugin/Repository/AbstractAssetsRepository.php on line 334

Fatal error: Declaration of Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository::search($query, $mode = 0) must be compatible with Composer\Repository\RepositoryInterface::search($query, $mode = 0, $type = NULL) in /home/vagrant/.composer/vendor/fxp/composer-asset-plugin/Repository/AbstractAssetsRepository.php on line 334
GinoPane commented 8 years ago

Hmm.. It seems to work after

composer self-update

francoispluchino commented 8 years ago

See the requirements section for each release version.

francoispluchino commented 8 years ago

If you use the dev version of Composer, use the 1.2.x-dev version of this plugin (see #230).