Cara Mengatasi Composer Fatal error: Declaration of Fxp ( Terbaru 2022 )
PHP Fatal error: Declaration of Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository::search($query, $mode = 0) must be compatible with Composer\Repository\ComposerRepository::search($query, $mode = 0, $type = NULL) in /home/hargapcrakitanid/.config/composer/vendor/fxp/composer-asset-plugin/Repository/AbstractAssetsRepository.php on line 101
Fatal error: Declaration of Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository::search($query, $mode = 0) must be compatible with Composer\Repository\ComposerRepository::search($query, $mode = 0, $type = NULL) in /home/hargapcrakitanid/.config/composer/vendor/fxp/composer-asset-plugin/Repository/AbstractAssetsRepository.php on line 101
1. Hapus fxp lama:
composer global remove fxp/composer-asset-plugin --no-plugins
2. Pasang fxp baru:
composer global require fxp/composer-asset-plugin --no-plugins
3. Lakukan pembaruan global:
composer global update fxp/composer-asset-plugin --no-plugins
Semoga artikel ini bermanfaat bagi Anda! Semoga berhasil
Sumber : https://onfor.info/kak-reshit-composer-fatal-error-declaration-of-fxp-must-be-compatible-with-abstractassetsrepository-php/