Skip to content

Commit 8e6cf4d

Browse files
authored
Force installing the same version for all Symfony components during the CI (#480)
* Force installing the same version for all Symfony components during the CI * Add CHANGELOG entry
1 parent 3ca5cab commit 8e6cf4d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/tests.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
Tests:
1313
runs-on: ubuntu-latest
1414
continue-on-error: ${{ matrix.experimental == true }}
15+
env:
16+
SYMFONY_REQUIRE: ${{matrix.symfony_constraint}}
1517
strategy:
1618
fail-fast: false
1719
matrix:
@@ -21,7 +23,7 @@ jobs:
2123
- '7.3'
2224
- '7.2'
2325
sentry_constraint: [false]
24-
symfony_constraint: [false]
26+
symfony_constraint: ['']
2527
experimental: [false]
2628
include:
2729
# - description: 'sentry/sentry dev-develop'
@@ -55,9 +57,8 @@ jobs:
5557
with:
5658
php-version: ${{ matrix.php }}
5759
coverage: xdebug
58-
- run: |
59-
sed -ri '/symfony\/(monolog-bundle|phpunit-bridge|messenger|psr-http-message-bridge|polyfill-php80)/! s/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony_constraint }}'"/' composer.json;
60-
if: matrix.symfony_constraint
60+
- name: Install Symfony Flex
61+
run: composer global require --no-progress --no-scripts --no-plugins symfony/flex
6162
- run: composer remove --dev symfony/messenger --no-update
6263
if: matrix.symfony_constraint == '3.4.*' || matrix.composer_option == '--prefer-lowest'
6364
- run: composer update --no-progress --ansi ${{ matrix.composer_option }}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Add support for distributed tracing when running a console command (#455)
99
- Added missing `capture-soft-fails` config schema option (#417)
1010
- Deprecate the `Sentry\SentryBundle\EventListener\ConsoleCommandListener` class in favor of its parent class `Sentry\SentryBundle\EventListener\ConsoleListener` (#429)
11+
- Lower the required version of `symfony/psr-http-message-bridge` to allow installing it on a project that uses Symfony `3.4.x` components only (#480)
1112

1213
## 4.0.3 (2021-03-03)
1314
- Fix regression from #454 for `null` value on DSN not disabling Sentry (#457)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"symfony/event-dispatcher": "^3.4.44||^4.4.20||^5.0.11",
3030
"symfony/http-kernel": "^3.4.44||^4.4.20||^5.0.11",
3131
"symfony/polyfill-php80": "^1.22",
32-
"symfony/psr-http-message-bridge": "^2.0",
32+
"symfony/psr-http-message-bridge": "^1.2||^2.0",
3333
"symfony/security-core": "^3.4.44||^4.4.20||^5.0.11"
3434
},
3535
"require-dev": {

0 commit comments

Comments
 (0)