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; } /**