Composer Fatal error: Declaration of Fxp... must be compatible with ...AbstractAssetsRepository.php on line 334 : <p>I updated composer</p>

<pre><code>composer self-update
</code></pre>

<p>I installed the newer version of the plugin</p>

<pre><code>composer global require "fxp/composer-asset-plugin:*"
</code></pre>

<p>I try to install Laravel</p>

<p><strong>composer global require "laravel/installer"</strong></p>

<pre><code>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
</code></pre>

<p>Now all commands in composer not working</p>

<pre><code>composer &lt;any command&gt;
</code></pre>

<p>Please help me to resolve it</p>
