Skip to content

Commit 993cbec

Browse files
webfloshrop
authored andcommitted
Revert "Deprecate PHP 7.1" (drupal-composer#521)
This reverts commit 5085410.
1 parent dcc3651 commit 993cbec

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ dist: trusty
33
sudo: false
44

55
php:
6+
- 7.0
7+
- 7.1
68
- 7.2
79
- 7.3
810

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ Follow the instructions in the [documentation on drupal.org](https://www.drupal.
132132

133133
### How do I specify a PHP version ?
134134

135-
This project supports PHP 7.2 as minimum version (see [Drupal 8 PHP requirements](https://www.drupal.org/docs/8/system-requirements/drupal-8-php-requirements)).
135+
This project supports PHP 5.6 as minimum version (see [Drupal 8 PHP requirements](https://www.drupal.org/docs/8/system-requirements/drupal-8-php-requirements)), however it's possible that a `composer update` will upgrade some package that will then require PHP 7+.
136136

137-
You can add this code to specify the PHP version you want to use in the `config` section of `composer.json`:
137+
To prevent this you can add this code to specify the PHP version you want to use in the `config` section of `composer.json`:
138138
```json
139139
"config": {
140140
"sort-packages": true,
141141
"platform": {
142-
"php": "7.3.9"
142+
"php": "5.6.40"
143143
}
144144
},
145145
```

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=7.2",
19+
"php": ">=5.6",
2020
"composer/installers": "^1.2",
2121
"cweagans/composer-patches": "^1.6.5",
2222
"drupal-composer/drupal-scaffold": "^2.5",

0 commit comments

Comments
 (0)