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 197
197
$ passthruOrFail ("$ COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0 \"" );
198
198
}
199
199
200
- if ($ info [ ' requires ' ][ ' php ' ] !== $ phpVersion = preg_replace ('{\^([\d\.] ++)$} ' , ' >=$1 ' , $ info ['requires ' ]['php ' ])) {
201
- $ passthruOrFail ("$ COMPOSER require --no-update \"php: $ phpVersion \"" );
200
+ if (preg_match ('{\^(\d++\.\d ++)[\d\.]*) $} ' , $ info ['requires ' ]['php ' ], $ phpVersion )) {
201
+ $ passthruOrFail ("$ COMPOSER config platform.php \"$ phpVersion[ 1 ] .99 \"" );
202
202
}
203
- $ passthruOrFail ("$ COMPOSER config --unset platform.php " );
204
203
if (file_exists ($ path = $ root .'/vendor/symfony/phpunit-bridge ' )) {
205
204
$ passthruOrFail ("$ COMPOSER require --no-update symfony/phpunit-bridge \"*@dev \"" );
206
205
$ 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