File tree Expand file tree Collapse file tree 5 files changed +4
-12
lines changed Expand file tree Collapse file tree 5 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 11
11
$ mergeBase = trim (shell_exec (sprintf ('git merge-base "%s" HEAD ' , array_shift ($ dirs ))));
12
12
$ version = array_shift ($ dirs );
13
13
14
- if ('7.0 ' === $ version ) {
15
- $ version = '6.4 ' ; // to be removed once deps allow ^7.0
16
- }
17
-
18
14
$ packages = [];
19
15
$ flags = JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE ;
20
16
$ preferredInstall = json_decode (file_get_contents (__DIR__ .'/composer-config.json ' ), true )['config ' ]['preferred-install ' ];
Original file line number Diff line number Diff line change @@ -155,8 +155,7 @@ jobs:
155
155
run : |
156
156
COMPOSER_HOME="$(composer config home)"
157
157
([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json"
158
- #export COMPOSER_ROOT_VERSION=$(grep ' VERSION = ' src/Symfony/Component/HttpKernel/Kernel.php | grep -P -o '[0-9]+\.[0-9]+').x-dev
159
- export COMPOSER_ROOT_VERSION=6.4.x-dev # to be removed once deps allow ^7.0
158
+ export COMPOSER_ROOT_VERSION=$(grep ' VERSION = ' src/Symfony/Component/HttpKernel/Kernel.php | grep -P -o '[0-9]+\.[0-9]+').x-dev
160
159
echo COMPOSER_ROOT_VERSION=$COMPOSER_ROOT_VERSION >> $GITHUB_ENV
161
160
162
161
echo "::group::composer update"
Original file line number Diff line number Diff line change 63
63
run : |
64
64
COMPOSER_HOME="$(composer config home)"
65
65
([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json"
66
- #export COMPOSER_ROOT_VERSION=$(grep ' VERSION = ' src/Symfony/Component/HttpKernel/Kernel.php | grep -P -o '[0-9]+\.[0-9]+').x-dev
67
- export COMPOSER_ROOT_VERSION=6.4.x-dev # to be removed once deps allow ^7.0
66
+ export COMPOSER_ROOT_VERSION=$(grep ' VERSION = ' src/Symfony/Component/HttpKernel/Kernel.php | grep -P -o '[0-9]+\.[0-9]+').x-dev
68
67
echo COMPOSER_ROOT_VERSION=$COMPOSER_ROOT_VERSION >> $GITHUB_ENV
69
68
70
69
echo "::group::composer update"
Original file line number Diff line number Diff line change 41
41
run : |
42
42
COMPOSER_HOME="$(composer config home)"
43
43
([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json"
44
- #export COMPOSER_ROOT_VERSION=$(grep ' VERSION = ' src/Symfony/Component/HttpKernel/Kernel.php | grep -P -o '[0-9]+\.[0-9]+').x-dev
45
- export COMPOSER_ROOT_VERSION=6.4.x-dev # to be removed once deps allow ^7.0
44
+ export COMPOSER_ROOT_VERSION=$(grep ' VERSION = ' src/Symfony/Component/HttpKernel/Kernel.php | grep -P -o '[0-9]+\.[0-9]+').x-dev
46
45
composer remove --dev --no-update --no-interaction symfony/phpunit-bridge
47
46
composer require --no-progress --ansi --no-plugins psalm/phar phpunit/phpunit:^9.6 php-http/discovery psr/event-dispatcher mongodb/mongodb jetbrains/phpstorm-stubs
48
47
Original file line number Diff line number Diff line change @@ -122,8 +122,7 @@ jobs:
122
122
[[ "${{ matrix.mode }}" = high-deps && $SYMFONY_VERSION = *.4 ]] && echo LEGACY=,legacy >> $GITHUB_ENV || true
123
123
124
124
echo SYMFONY_VERSION=$SYMFONY_VERSION >> $GITHUB_ENV
125
- #echo COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev >> $GITHUB_ENV
126
- echo COMPOSER_ROOT_VERSION=6.4.x-dev >> $GITHUB_ENV # to be removed once all deps allow ^7.0
125
+ echo COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev >> $GITHUB_ENV
127
126
echo SYMFONY_REQUIRE=">=$([ '${{ matrix.mode }}' = low-deps ] && echo 5.4 || echo $SYMFONY_VERSION)" >> $GITHUB_ENV
128
127
[[ "${{ matrix.mode }}" = *-deps ]] && mv composer.json.phpunit composer.json || true
129
128
You can’t perform that action at this time.
0 commit comments