Skip to content

Commit

Permalink
Bump Drupal core required minimum version to 8.9.0 and support Compos…
Browse files Browse the repository at this point in the history
…er 2.
  • Loading branch information
jsacksick committed Oct 26, 2020
1 parent 0f9fbb4 commit 35d7fd0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@

# Ignore files generated by PhpStorm
/.idea/
/.editorconfig
/.gitattributes
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ For more details, see https://asset-packagist.org/site/about

### How do I specify a PHP version ?

This project supports PHP 7.0 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+.
This project supports PHP 7.1 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.1+.

To prevent this you can add this code to specify the PHP version you want to use in the `config` section of `composer.json`:
```json
"config": {
"sort-packages": true,
"platform": {
"php": "7.0.33"
"php": "7.1.21"
}
},
```
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,25 @@
"sort-packages": true
},
"require": {
"php": ">=7.0.8",
"php": ">=7.1",
"ext-curl": "*",
"composer/installers": "^1.2",
"cweagans/composer-patches": "^1.6.5",
"drupal/console": "^1.0.2",
"drupal/core": "^8.8.0",
"drupal/core-composer-scaffold": "^8.8.0",
"drupal/core": "^8.9.0",
"drupal/core-composer-scaffold": "^8.9.0",
"drupal/commerce": "^2.0",
"drupal/search_api": "^1.0",
"drupal/swiftmailer": "^2.0",
"drupal/token": "^1.0",
"drupalcommerce/commerce_base": "dev-8.x-1.x",
"oomphinc/composer-installers-extender": "^1.1",
"drush/drush": "^9.7.1 | ^10.0.0",
"oomphinc/composer-installers-extender": "^2.0",
"webflo/drupal-finder": "^1.0.0",
"webmozart/path-util": "^2.3",
"zaporylie/composer-drupal-optimizations": "^1.0"
"webmozart/path-util": "^2.3"
},
"require-dev": {
"drupal/core-dev": "^8.8.0"
"drupal/core-dev": "^8.9.0",
"zaporylie/composer-drupal-optimizations": "^1.1"
},
"conflict": {
"drupal/drupal": "*"
Expand Down

0 comments on commit 35d7fd0

Please sign in to comment.