From dd18a5fe553472a45a4a583bb16ef68e497ef772 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 2 Apr 2024 17:40:35 +0200 Subject: [PATCH] Make methods chainable --- src/Composer/Installer.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index d1d943d36..5d7e7fb51 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -1111,20 +1111,26 @@ class Installer * Packages of those types are ignored, by default php-ext and php-ext-zend are ignored * * @param list $types + * @return $this */ - public function setIgnoredTypes(array $types): void + public function setIgnoredTypes(array $types): self { $this->ignoredTypes = $types; + + return $this; } /** * Only packages of those types are allowed if set to non-null * * @param list|null $types + * @return $this */ - public function setAllowedTypes(?array $types): void + public function setAllowedTypes(?array $types): self { $this->allowedTypes = $types; + + return $this; } /**