From c088c0cfeb16ba715a88474fb10102e2dfa91876 Mon Sep 17 00:00:00 2001 From: Dave Reid Date: Thu, 7 Dec 2023 10:53:24 -0600 Subject: [PATCH] Document php-version can come from platform overrides in composer.lock and composer.json --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 914aadf7..42d0e58d 100644 --- a/README.md +++ b/README.md @@ -395,7 +395,10 @@ Disable coverage for these reasons: - Accepts `nightly` to set up a nightly build from the master branch of PHP. - Accepts the format `d.x`, where `d` is the major version. For example `5.x`, `7.x` and `8.x`. - See [PHP support](#tada-php-support) for the supported PHP versions. -- If not specified, it looks for `php-version-file` input. +- If not specified, it looks for the following in order: + - The `php-version-file` input if it exists + - A `composer.lock` file and the `platform-overrides.php` value + - A `composer.json` file and the `config.platform.php` value #### `php-version-file` (optional)