From 2f83338d2f9c7189cca52c0114e373f16a334a56 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 22 Jul 2021 13:54:18 +0200 Subject: [PATCH] Fix hopefully last php 8.1 deprecation warnings --- src/Composer/Repository/CompositeRepository.php | 1 + src/Composer/Repository/FilterRepository.php | 1 + 2 files changed, 2 insertions(+) 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) {