Skip to content

Commit 5085410

Browse files
MPParsleywebflo
authored andcommitted
Deprecate PHP 7.0 and 7.1 (drupal-composer#518)
1 parent ec0f411 commit 5085410

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ dist: trusty
33
sudo: false
44

55
php:
6-
- 7.0
7-
- 7.1
86
- 7.2
97
- 7.3
108

README.md

+3-3
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 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+.
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)).
136136

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`:
137+
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": "5.6.40"
142+
"php": "7.3.9"
143143
}
144144
},
145145
```

composer.json

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

0 commit comments

Comments
 (0)