diff --git a/src/Composer/Util/ConfigValidator.php b/src/Composer/Util/ConfigValidator.php index 670c9d755..5bd915388 100644 --- a/src/Composer/Util/ConfigValidator.php +++ b/src/Composer/Util/ConfigValidator.php @@ -110,12 +110,12 @@ class ConfigValidator // check for require-dev overrides if (isset($manifest['require']) && isset($manifest['require-dev'])) { - $requireOverrides = array_intersect_key($manifest['require'], $manifest['require-dev']); + $requireOverrides = array_intersect_key($manifest['require'], $manifest['require-dev']); - if (!empty($requireOverrides)) { - $plural = (count($requireOverrides) > 1) ? 'are' : 'is'; - $warnings[] = implode(', ', array_keys($requireOverrides)). " {$plural} required both in require and require-dev, this can lead to unexpected behavior"; - } + if (!empty($requireOverrides)) { + $plural = (count($requireOverrides) > 1) ? 'are' : 'is'; + $warnings[] = implode(', ', array_keys($requireOverrides)). " {$plural} required both in require and require-dev, this can lead to unexpected behavior"; + } } try {