Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Commit 58cced3

Browse files
committed
More details in README
1 parent d2dd766 commit 58cced3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@ Thanks to an undocumented Composer feature, it's possible to override which repo
1616
This repository (`github.com/phpstan/phpstan-phar-composer-source`) is referenced in `source` key in `phpstan/phpstan` [composer.json](https://github.com/phpstan/phpstan/blob/2.1.x/composer.json) file.
1717

1818
When the user tries to use PHPStan with this repository in their `vendor/` directory, a script downloads `phpstan.phar` from [GitHub releases](https://github.com/phpstan/phpstan/releases) and prints a short warning before running PHPStan as usual.
19+
20+
Avoiding this issue
21+
-----------
22+
23+
Run `composer install`, `update`, `require` commands without `--prefer-source` or with `--prefer-dist` to be sure.
24+
25+
Or configure `phpstan/phpstan` (or all packages) to be installed with `dist` in your `composer.json`. Learn more: https://getcomposer.org/doc/06-config.md#preferred-install

0 commit comments

Comments
 (0)