Skip to content

Commit

Permalink
Add support for PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Dec 23, 2020
1 parent 664bec8 commit f7ac3d0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"

- name: "Only install stable dependencies"
run: "composer config minimum-stability stable"

- name: "Install dependencies with Composer"
run: "composer install --no-interaction --no-progress --no-suggest"

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- "7.2"
- "7.3"
- "7.4"
- "8.0"
deps:
- "normal"
include:
Expand All @@ -51,11 +52,6 @@ jobs:
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"

# to be removed when doctrine/orm adds support for PHP 8
- name: "Pretend this is PHP 7.4"
run: "composer config platform.php 7.4.99"
if: "${{ matrix.php-version == '8.0' }}"

- name: "Install dependencies with composer"
run: "composer update --no-interaction --prefer-dist"
if: "${{ matrix.deps == 'normal' }}"
Expand Down
10 changes: 3 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
],
"require": {
"php": "^7.2",
"php": "^7.2|^8.0",
"symfony/framework-bundle": "~3.4|~4.0|~5.0",
"doctrine/doctrine-bundle": "~1.0|~2.0",
"doctrine/migrations": "~3.0"
Expand All @@ -43,14 +43,10 @@
"autoload-dev": {
"psr-4": { "Doctrine\\Bundle\\MigrationsBundle\\Tests\\": "Tests" }
},
"config": {
"platform": {
"php": "7.2.5"
}
},
"extra": {
"branch-alias": {
"dev-master": "3.0.x-dev"
}
}
},
"minimum-stability": "dev"
}

0 comments on commit f7ac3d0

Please sign in to comment.