File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -121,10 +121,9 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
121
121
$ passthruOrFail ("$ COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0 \"" );
122
122
}
123
123
124
- if ($ info [ ' requires ' ][ ' php ' ] !== $ phpVersion = preg_replace ('{\^([\d\.] ++)$} ' , ' >=$1 ' , $ info ['requires ' ]['php ' ])) {
125
- $ passthruOrFail ("$ COMPOSER require --no-update \"php: $ phpVersion \"" );
124
+ if (preg_match ('{\^(\d++\.\d ++)[\d\.]*) $} ' , $ info ['requires ' ]['php ' ], $ phpVersion )) {
125
+ $ passthruOrFail ("$ COMPOSER config platform.php \"$ phpVersion[ 1 ] .99 \"" );
126
126
}
127
- $ passthruOrFail ("$ COMPOSER config --unset platform.php " );
128
127
if (file_exists ($ path = $ root .'/vendor/symfony/phpunit-bridge ' )) {
129
128
$ passthruOrFail ("$ COMPOSER require --no-update symfony/phpunit-bridge \"*@dev \"" );
130
129
$ passthruOrFail ("$ COMPOSER config repositories.phpunit-bridge path " .escapeshellarg (str_replace ('/ ' , DIRECTORY_SEPARATOR , $ path )));
You can’t perform that action at this time.
0 commit comments