diff --git a/src/Composer/Repository/CompositeRepository.php b/src/Composer/Repository/CompositeRepository.php index 53d1fa9d9..ac1f2e149 100644 --- a/src/Composer/Repository/CompositeRepository.php +++ b/src/Composer/Repository/CompositeRepository.php @@ -177,6 +177,7 @@ class CompositeRepository implements RepositoryInterface /** * {@inheritdoc} */ + #[\ReturnTypeWillChange] public function count() { $total = 0; diff --git a/src/Composer/Repository/FilterRepository.php b/src/Composer/Repository/FilterRepository.php index 8778233fd..0582a0f54 100644 --- a/src/Composer/Repository/FilterRepository.php +++ b/src/Composer/Repository/FilterRepository.php @@ -185,6 +185,7 @@ class FilterRepository implements RepositoryInterface /** * {@inheritdoc} */ + #[\ReturnTypeWillChange] public function count() { if ($this->repo->count() > 0) {