diff --git a/composer.json b/composer.json index 8f0da9306ccaad656c7a4a521c44ca77f9003eb9..2700543e13af211007d7b1dd2d42fca9a4710938 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ "config": { "preferred-install": "dist", "platform": { - "php": "8.0.2" + "php": "8.1.0" }, "allow-plugins": { "composer/installers": true, diff --git a/composer.lock b/composer.lock index d20625aa75a462aae871eb9974a2edff41a2b4c7..89134796d00e359a2ac48f6e96fff6ec1271e9a4 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "37d8d1300ab9c7bcc69ee336d9aa26d7", + "content-hash": "7b8f0c4295ab74f6a69a3db347cbbcbb", "packages": [ { "name": "asm89/stack-cors", @@ -448,7 +448,7 @@ "dist": { "type": "path", "url": "core", - "reference": "350f2472b9ca31ba8c124c757bc4cfd7f8bebcd2" + "reference": "f5ee474025903300feff11f05e763de7914782b0" }, "require": { "asm89/stack-cors": "^2.0.2", @@ -472,7 +472,7 @@ "laminas/laminas-feed": "^2.12", "masterminds/html5": "^2.1", "pear/archive_tar": "^1.4.14", - "php": ">=8.0.2", + "php": ">=8.1.0", "psr/log": "^1.0", "symfony/console": "^5.4", "symfony/dependency-injection": "^5.4", @@ -8474,7 +8474,7 @@ "platform": [], "platform-dev": [], "platform-overrides": { - "php": "8.0.2" + "php": "8.1.0" }, "plugin-api-version": "2.2.0" } diff --git a/core/INSTALL.txt b/core/INSTALL.txt index 739c3071170f3d233933c02d227b2867c1edbfea..44c1c15218d3a8abd5a47a7cf940216fce17795d 100644 --- a/core/INSTALL.txt +++ b/core/INSTALL.txt @@ -15,7 +15,7 @@ QUICKSTART ---------------------- Prerequisites: -- PHP 8.0.2 (or greater) (https://php.net). +- PHP 8.1.0 (or greater) (https://php.net). In the instructions below, replace the version x.y.z with the specific version you wish to download. Example: 8.6.0.zip. You can find the latest stable version @@ -48,7 +48,7 @@ Drupal requires: - A web server with PHP support, for example: - Apache 2.4.7 (or greater) (http://httpd.apache.org/). - Nginx 1.1 (or greater) (http://nginx.com/). -- PHP 8.0.2 (or greater) (http://php.net/). +- PHP 8.1.0 (or greater) (http://php.net/). - One of the following databases: - MySQL 5.7.8 (or greater) (http://www.mysql.com/). - MariaDB 10.3.7 (or greater) (https://mariadb.org/). MariaDB is a fully diff --git a/core/composer.json b/core/composer.json index c77fbabe37e047f4660bdeeffbdaff8fb90881ec..2d8d5435bccf5f3ac97fb6924f2a7bfab18335e2 100644 --- a/core/composer.json +++ b/core/composer.json @@ -17,7 +17,7 @@ "ext-SPL": "*", "ext-tokenizer": "*", "ext-xml": "*", - "php": ">=8.0.2", + "php": ">=8.1.0", "symfony/console": "^5.4", "symfony/dependency-injection": "^5.4", "symfony/event-dispatcher": "^5.4", diff --git a/core/install.php b/core/install.php index 6b7996020d9eed006f1c68e362a3785709740850..7678e6ecc9c8e0cb07d3c7e7c8bfadf57aa03600 100644 --- a/core/install.php +++ b/core/install.php @@ -29,8 +29,8 @@ // hardcoded minimum PHP version below (both in the version_compare() call and // in the printed message to the user) whenever \Drupal::MINIMUM_PHP is // updated. -if (version_compare(PHP_VERSION, '8.0.2') < 0) { - print 'Your PHP installation is too old. Drupal requires at least PHP 8.0.2. See the <a href="https://www.drupal.org/docs/9/how-drupal-9-is-made-and-what-is-included/environment-requirements-of-drupal-9#s-php-version-requirement">Environment requirements of Drupal 9</a> page for more information.'; +if (version_compare(PHP_VERSION, '8.1.0') < 0) { + print 'Your PHP installation is too old. Drupal requires at least PHP 8.1.0. See the <a href="https://www.drupal.org/docs/9/how-drupal-9-is-made-and-what-is-included/environment-requirements-of-drupal-9#s-php-version-requirement">Environment requirements of Drupal 9</a> page for more information.'; exit; } diff --git a/core/lib/Drupal.php b/core/lib/Drupal.php index c024b4625460f450094dae69f6ff197c4e558dac..f654f2ec3edcca2995073652ae2f5fe62ad079dd 100644 --- a/core/lib/Drupal.php +++ b/core/lib/Drupal.php @@ -114,7 +114,7 @@ class Drupal { * - Once in the error message printed to the user immediately after. * Remember to update both whenever this constant is updated. */ - const MINIMUM_PHP = '8.0.2'; + const MINIMUM_PHP = '8.1.0'; /** * Minimum recommended value of PHP memory_limit.