From 5780caf208a65c354fcfc35485b73b521062177f Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 26 Jun 2021 23:09:02 +0200 Subject: [PATCH] Fix link when no composer.json is present, fixes #9966 --- src/Composer/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php index a7ba027c1..6c9891d34 100644 --- a/src/Composer/Factory.php +++ b/src/Composer/Factory.php @@ -304,7 +304,7 @@ class Factory } else { $message = 'Composer could not find the config file: '.$localConfig; } - $instructions = $fullLoad ? 'To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section' : ''; + $instructions = $fullLoad ? 'To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage' : ''; throw new \InvalidArgumentException($message.PHP_EOL.$instructions); }