Skip to content

Commit e940543

Browse files
CI: use doctrine/annotations v1 with PHP 7
1 parent 888d48a commit e940543

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ jobs:
6565
symfony/validator=${{ matrix.symfony-version }}
6666
symfony/yaml=${{ matrix.symfony-version }}
6767
68+
- name: Require Annotations v1 to require for PHP 7
69+
if: startsWith(matrix.php-version, '7.')
70+
run: composer require --no-update "doctrine/annotations:^1.8.0"
71+
72+
- name: Require Annotations v1/v2 to require for PHP 8+
73+
if: startsWith(matrix.php-version, '7.') != true
74+
run: composer require --no-update "doctrine/annotations:^1.8.0|^2.0"
75+
6876
- name: Install Composer dependencies
6977
if: matrix.composer-flags == ''
7078
run: composer install

0 commit comments

Comments
 (0)