Skip to content

Commit c36d11d

Browse files
Deprecate "flex-require" sections
1 parent c8d046a commit c36d11d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Flex.php

+3
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ public function update(Event $event, $operations = [])
415415
if (!isset($json['flex-'.$type])) {
416416
continue;
417417
}
418+
419+
$this->io->writeError(sprintf('<warning>Using section "flex-%s" in composer.json is deprecated, use "%1$s" instead.</>', $type));
420+
418421
foreach ($json['flex-'.$type] as $package => $constraint) {
419422
if ($symfonyVersion && '*' === $constraint && isset($versions['splits'][$package])) {
420423
// replace unbounded constraints for symfony/* packages by extra.symfony.require

0 commit comments

Comments
 (0)