Skip to content

Commit 2fe1d0a

Browse files
committed
Drop optional Twig on PHP 8.0
1 parent 3725e35 commit 2fe1d0a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ jobs:
8484
key: composer-${{ matrix.php }}-${{ matrix.deps }}-${{ hashFiles('**/composer.json') }}
8585
restore-keys: composer-${{ matrix.php }}-${{ matrix.deps }}-
8686

87+
# twig/twig 3.x requires PHP >= 8.1, but this package still supports 8.0
88+
# (Twig is an optional adapter). Drop it on the 8.0 job so dependency
89+
# resolution succeeds; TwigAdapterTest skips itself when twig/twig is absent.
90+
- name: Drop optional Twig on PHP 8.0
91+
if: matrix.php == '8.0'
92+
run: composer remove --dev twig/twig --no-update
93+
8794
- name: Install highest dependencies
8895
if: matrix.deps == 'highest'
8996
run: composer update --prefer-dist --no-progress --no-interaction

0 commit comments

Comments
 (0)