From 12c7635f5836a5d9f86321d1a1c7d66774bb15a4 Mon Sep 17 00:00:00 2001 From: navneet0693 Date: Thu, 10 Feb 2022 13:48:30 +0530 Subject: [PATCH] Changed PHP version from 8.1 to 8.0 to match Open Social Docker image from https://github.com/goalgorilla/open_social_docker/pull/19. --- .travis.yml | 2 +- rector.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9554ee2ab..82d3d5593 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ addons: language: php php: - - 8.1 + - 8.0 services: - docker diff --git a/rector.php b/rector.php index 255cdd2ea..2e9f4b7d2 100644 --- a/rector.php +++ b/rector.php @@ -24,7 +24,7 @@ // Should we try and load \Drupal::VERSION and check? $containerConfigurator->import(__DIR__ . '/vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8-all-deprecations.php'); $containerConfigurator->import(__DIR__ . '/vendor/palantirnet/drupal-rector/config/drupal-9/drupal-9-all-deprecations.php'); - $containerConfigurator->import(SetList::PHP_81); + $containerConfigurator->import(SetList::PHP_80); $parameters = $containerConfigurator->parameters(); $drupalFinder = new DrupalFinder(); @@ -37,7 +37,7 @@ $drupalRoot . '/themes', ]); - $parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_81); + $parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_80); $parameters->set(Option::SKIP, ['*/upgrade_status/tests/modules/*']); $parameters->set(Option::FILE_EXTENSIONS, ['php', 'module', 'theme', 'install', 'profile', 'inc', 'engine']); $parameters->set(Option::AUTO_IMPORT_NAMES, TRUE);