@@ -23,6 +23,8 @@ class ProjectRequirements extends RequirementCollection
2323 const REQUIRED_PHP_VERSION_3x = '5.5.9 ' ;
2424 const REQUIRED_PHP_VERSION_4x = '7.1.3 ' ;
2525 const REQUIRED_PHP_VERSION_5x = '7.2.9 ' ;
26+ const REQUIRED_PHP_VERSION_6x = '8.1.0 ' ;
27+ const REQUIRED_PHP_VERSION_7x = '8.2.0 ' ;
2628
2729 public function __construct ($ rootDir )
2830 {
@@ -37,12 +39,16 @@ public function __construct($rootDir)
3739 $ rootDir = $ this ->getComposerRootDir ($ rootDir );
3840 $ options = $ this ->readComposer ($ rootDir );
3941
40- $ phpVersion = self ::REQUIRED_PHP_VERSION_3x ;
42+ $ phpVersion = self ::REQUIRED_PHP_VERSION_7x ;
4143 if (null !== $ symfonyVersion ) {
42- if (version_compare ($ symfonyVersion , '5.0.0 ' , '>= ' )) {
44+ if (version_compare ($ symfonyVersion , '6.0.0 ' , '>= ' )) {
45+ $ phpVersion = self ::REQUIRED_PHP_VERSION_6x;
46+ } elseif (version_compare ($ symfonyVersion , '5.0.0 ' , '>= ' )) {
4347 $ phpVersion = self ::REQUIRED_PHP_VERSION_5x;
4448 } elseif (version_compare ($ symfonyVersion , '4.0.0 ' , '>= ' )) {
4549 $ phpVersion = self ::REQUIRED_PHP_VERSION_4x;
50+ } elseif (version_compare ($ symfonyVersion , '3.0.0 ' , '>= ' )) {
51+ $ phpVersion = self ::REQUIRED_PHP_VERSION_3x;
4652 }
4753 }
4854
0 commit comments