From 35d7fd0dcf636c74f58f22ebf58e3162f1b90c0d Mon Sep 17 00:00:00 2001 From: Jonathan Sacksick Date: Mon, 26 Oct 2020 14:47:50 +0200 Subject: [PATCH] Bump Drupal core required minimum version to 8.9.0 and support Composer 2. --- .gitignore | 2 ++ README.md | 4 ++-- composer.json | 16 ++++++++-------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 67b93cd..84a77eb 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,5 @@ # Ignore files generated by PhpStorm /.idea/ +/.editorconfig +/.gitattributes \ No newline at end of file diff --git a/README.md b/README.md index 8d4cc11..4a4c72b 100644 --- a/README.md +++ b/README.md @@ -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" } }, ``` diff --git a/composer.json b/composer.json index 68a394b..eda00b9 100644 --- a/composer.json +++ b/composer.json @@ -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": "*"