1
0
Fork 0

Update scripts.md (#11880)

Updates the 'Setting environment variables' example to call Composer using `@composer` in order to automatically resolve to whatever composer.phar is currently being used as detailed in the previous section on this same page.
pull/11885/head
8ig8 2024-03-11 11:41:05 -04:00 committed by GitHub
parent 57427e6227
commit 58276f2bd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ To set an environment variable in a cross-platform way, you can use `@putenv`:
"scripts": { "scripts": {
"install-phpstan": [ "install-phpstan": [
"@putenv COMPOSER=phpstan-composer.json", "@putenv COMPOSER=phpstan-composer.json",
"composer install --prefer-dist" "@composer install --prefer-dist"
] ]
} }
} }