Skip to content

Commit a50caac

Browse files
Allow var-exporter v6.2+ to be installed with pre-6.2 apps
1 parent ba49dae commit a50caac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/GenerateFlexEndpointCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5151
$aliases[str_replace('-', '', $alias)] = $package;
5252
}
5353
}
54+
55+
if (isset($versions['splits']['symfony/var-exporter'])) {
56+
// Allow var-exporter v6.2+ to be installed with pre-6.2 apps
57+
$versions['splits']['symfony/var-exporter'] = array_values(array_diff($versions['splits']['symfony/var-exporter'], ['4.2', '4.3', '4.4', '5.0', '5.1', '5.2', '5.3', '5.4', '6.0', '6.1']));
58+
}
5459
}
5560

5661
// stdin usually generated by `git ls-tree HEAD */*/*`

0 commit comments

Comments
 (0)