Update php-version and php-version-file input section in README

This commit is contained in:
Shivam Mathur 2023-01-29 21:20:52 +05:30
parent 9c411b6e2b
commit f2018b2189
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -398,16 +398,16 @@ Disable coverage for these reasons:
- Accepts `latest` to set up the latest stable PHP version. - Accepts `latest` to set up the latest stable PHP version.
- Accepts `nightly` to set up a nightly build from the master branch of PHP. - 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`. - 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 supported PHP versions. - See [PHP support](#tada-php-support) for the supported PHP versions.
- By default, the PHP version is read from `php-version-file`. - If not specified, it looks for `php-version-file` input.
- Required if `php-version-file` does not exist.
#### `php-version-file` (optional) #### `php-version-file` (optional)
- Specify the PHP version file you want to read when `php-version` is not provided. - Specify a file with the PHP version you want to set up.
- Accepts a `string`. For example `'.phpenv-version'`. - Accepts a `string`. For example `'.phpenv-version'`.
- See [PHP support](#tada-php-support) for supported PHP versions. - See [PHP support](#tada-php-support) for the supported PHP versions.
- By default, `.php-version` file is used. - By default, `.php-version` file is used.
- If not specified and the default `.php-version` file is not found, the latest stable PHP version is set up.
#### `extensions` (optional) #### `extensions` (optional)