From 1f164244ab54ba5d74af73507750661f9dcb36c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=BCrth?= Date: Mon, 27 Feb 2023 13:34:21 +0100 Subject: [PATCH] Add note about issue with caret operator in PowerShell (#11351) Refers to #11288 --- doc/articles/versions.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/articles/versions.md b/doc/articles/versions.md index 5d13e72a4..c5fb9aba6 100644 --- a/doc/articles/versions.md +++ b/doc/articles/versions.md @@ -194,6 +194,11 @@ library code. Example: `^1.2.3` +> **Note:** If you are using PowerShell on Windows, you have to escape +> carets when using them as argument on the CLI for example when using the +> `composer require` command. You have to use four +> subsequent caret operators, e.g. `^^^^1.2.3`, to ensure the caret operator gets +> passed to Composer correctly. ## Stability Constraints If you are using a constraint that does not explicitly define a stability,