From 45591597f6e239c59d11ad7303e2d50220144469 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 29 Jul 2019 16:37:35 +0200 Subject: [PATCH] Clarify how check-platform-reqs works, fixes #8191 --- doc/03-cli.md | 4 ++++ src/Composer/Command/CheckPlatformReqsCommand.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/doc/03-cli.md b/doc/03-cli.md index 49879d54d..8cfd5cac0 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -259,6 +259,10 @@ match the platform requirements of the installed packages. This can be used to verify that a production server has all the extensions needed to run a project after installing it for example. +Unlike update/install, this command will ignore config.platform settings and +check the real platform packages so you can be certain you have the required +platform dependencies. + ## global The global command allows you to run other commands like `install`, `remove`, `require` diff --git a/src/Composer/Command/CheckPlatformReqsCommand.php b/src/Composer/Command/CheckPlatformReqsCommand.php index de7f4b4d3..8ce0b0186 100644 --- a/src/Composer/Command/CheckPlatformReqsCommand.php +++ b/src/Composer/Command/CheckPlatformReqsCommand.php @@ -34,6 +34,8 @@ class CheckPlatformReqsCommand extends BaseCommand <<php composer.phar check-platform-reqs EOT