From 8ce0ea300e72e6528670e7cd4e8d2781fe6adae1 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 18 Aug 2021 14:22:41 +0200 Subject: [PATCH] Fix pear repo preventing self-update from functioning, fixes #10049 --- src/Composer/Repository/PearRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/PearRepository.php b/src/Composer/Repository/PearRepository.php index 5b4ea969c..0998f302d 100644 --- a/src/Composer/Repository/PearRepository.php +++ b/src/Composer/Repository/PearRepository.php @@ -27,6 +27,6 @@ class PearRepository extends ArrayRepository { public function __construct() { - throw new \RuntimeException('The PEAR repository has been removed from Composer 2.0'); + throw new \InvalidArgumentException('The PEAR repository has been removed from Composer 2.x'); } }