I updated composer
composer self-update
I installed the newer version of the plugin
composer global require "fxp/composer-asset-plugin:*"
I try to install Laravel
composer global require "laravel/installer"
Changed current directory to C:/Users/Arthur/AppData/Roaming/Composer
Fatal error: Declaration of Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRe
pository::search() must be compatible with Composer\Repository\RepositoryInterfa
ce::search($query, $mode = 0, $type = NULL) in C:\Users\Arthur\AppData\Roaming\C
omposer\vendor\fxp\composer-asset-plugin\Repository\AbstractAssetsRepository.php
on line 334
Now all commands in composer not working
composer <any command>
Please help me to resolve it