Skip to content

Commit 4a664d2

Browse files
committed
Issue #408: Bump minimum PHP version to 5.6
1 parent 21698cf commit 4a664d2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -132,12 +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-
Currently Drupal 8 supports PHP 5.5.9 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 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

137137
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,
141-
"platform": {"php": "5.5.9"}
141+
"platform": {
142+
"php": "5.6.40"
143+
}
142144
},
143145
```

Diff for: composer.json

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

0 commit comments

Comments
 (0)