Skip to content

Commit

Permalink
Add #[ReturnTypeWillChange] attribute to suppress deprecation warning,
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jul 21, 2021
1 parent be58b36 commit fa61426
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Composer/Repository/ArrayRepository.php
Expand Up @@ -283,6 +283,7 @@ public function getPackages()
*
* @return int Number of packages
*/
#[ReturnTypeWillChange]
public function count()
{
if (null === $this->packages) {
Expand Down

0 comments on commit fa61426

Please sign in to comment.