Skip to content

Commit 846ce2f

Browse files
authored
Merge pull request #24 from samsonasik/allow-webmozart-assert2
Allow webmozart/assert version ^2.1
2 parents e44141f + 85a547c commit 846ce2f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/ci_build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ on:
88

99
jobs:
1010
build:
11-
name: PHP ${{ matrix.php-versions }}
11+
name: PHP ${{ matrix.php-versions }} (${{ matrix.deps }})
1212
runs-on: ubuntu-latest
1313
strategy:
1414
fail-fast: false
1515
matrix:
1616
php-versions: ['8.2', '8.3', '8.4']
17+
deps: ['latest', 'lowest']
1718
steps:
1819
- name: Setup PHP Action
1920
uses: shivammathur/setup-php@v2
@@ -24,8 +25,12 @@ jobs:
2425
- name: Checkout
2526
uses: actions/checkout@v2
2627
- run: "composer validate"
27-
- name: "Install dependencies"
28-
run: "composer install --prefer-dist"
28+
- name: "Install dependencies (latest)"
29+
if: matrix.deps == 'latest'
30+
run: "composer install --no-interaction --no-progress --prefer-dist"
31+
- name: "Install dependencies (lowest)"
32+
if: matrix.deps == 'lowest'
33+
run: "composer update --no-interaction --no-progress --prefer-dist --prefer-lowest --prefer-stable"
2934
- name: "CS Check"
3035
run: "composer cs-check"
3136
- name: "Code analyze"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
],
2626
"require": {
2727
"php": "^8.2",
28-
"webmozart/assert": "^1.11"
28+
"webmozart/assert": "^1.11 || ^2.1"
2929
},
3030
"conflict": {
3131
"mezzio/mezzio": "<3.0",

0 commit comments

Comments
 (0)