You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 30, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,3 +16,10 @@ Thanks to an undocumented Composer feature, it's possible to override which repo
16
16
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.
17
17
18
18
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