Direkt zur Hauptnavigation springen Direkt zum Inhalt springen

Schlagwort: Composer

Magento 2: Fix for error "Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count()" after upgrade to 2.4.4 with PHP 8.1/8.2

The following error occurs # bin/magento setup:upgrade PHP Fatal error: During inheritance of Countable: Uncaught Exception: Deprecated Functionality: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/www/htdocs/vendor/composer/composer/src/Composer/Repository/ArrayRepository.php on line 277 in /srv/www/htdocs/vendor/magento/fr...