Skip to content

Commit 714d2e2

Browse files
authored
⬇️ PHP 7.2 support (roots#9)
1 parent f1c85cc commit 714d2e2

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
strategy:
1515
matrix:
1616
php-version:
17+
- '7.2'
18+
- '7.4'
19+
- '8.0'
1720
- '8.1'
1821
- '8.2'
1922
- '8.3'
@@ -30,13 +33,10 @@ jobs:
3033
- name: Install dependencies
3134
run: composer install --prefer-dist --no-progress
3235

33-
- name: Install specific PHPUnit version
34-
run: composer require "phpunit/phpunit:^9.6" --dev
35-
3636
- name: Run tests
3737
run: composer test
3838

3939
- name: Upload coverage reports to Codecov
4040
uses: codecov/codecov-action@v3
4141
env:
42-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
42+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ To set up a custom WordPress build package to use this as a custom installer, ad
1919
```json
2020
"type": "wordpress-core",
2121
"require": {
22-
"roots/wordpress-core-installer": "^2.0"
22+
"roots/wordpress-core-installer": "^3.0"
2323
}
2424
```
2525

26-
If you need to maintain support for PHP versions lower than 8.1 (not recommended!), use `^1.0` as your version constraint in the above.
27-
2826
By default, this package will install a `wordpress-core` type package in the `wordpress` directory. To change this you can add the following to either your custom WordPress core type package or the root composer package:
2927

3028
```json

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@
3333
},
3434
"require": {
3535
"composer-plugin-api": "^1.0 || ^2.0",
36-
"php": ">=8.1"
36+
"php": ">=7.2.24"
3737
},
3838
"require-dev": {
3939
"composer/composer": "^1.0 || ^2.0",
40-
"phpunit/phpunit": "^9.6"
40+
"phpunit/phpunit": "^8.5"
4141
},
4242
"conflict": {
4343
"composer/installers": "<1.0.6"
4444
},
4545
"replace": {
46-
"johnpbloch/wordpress-core-installer":"*"
46+
"johnpbloch/wordpress-core-installer": "*"
4747
},
4848
"scripts": {
4949
"test:phpunit": "phpunit",

0 commit comments

Comments
 (0)