-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config generation on global installation #65
Comments
Hi, I don't understand this problem, can you list the exact steps that lead to this problem? I don't understand why running Anyway, your best best is to install PHPStan locally in your project, which will remove your headaches like these, and is the recommended option anyway (https://phpstan.org/user-guide/getting-started). |
@ondrejmirtes Thanks for your reply. These are the steps (I didn't doublecheck, so there might be mistakes in them, but I think the way in general gets clear):
Example entity (reader, but no setter): class MyEntity
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private int $id;
public function getId(): int
{
return $this->id;
}
} I'd like to avoid installing quality tools as project dependencies, to a) have them completely independent and "un-interfering", and b) only need a single installation in a monorepo to simplify maintenance. |
I had the same issue today: TomasVotruba/type-coverage#10 (comment) By uninstalling the global "auto-installer" everything goes fine. However, having the possibility of using PHPStan with extensions both locally and globally with the auto-installer would be great. Until this issue is solved, the only possibility is to include manually the config files. NB: it seems the same issue referenced here #76 (comment) |
I also ran into this issue. Thanks @scollovati for the hint about uninstalling. After I removed it with |
FYI I ended up adding a call to |
Hi,
I have the following constellation:
composer global require ...
)My problem is as follows:
composer install
locally in the project.This is because the extension installer re-generates the
GeneratedConfig
oncomposer install
, and because there are no extensions installed locally, the config is now empty. This leads to some code not being correctly interpreted because the extensions are ignored.Is there anything I need to do, or do you have other advice? Thanks! :-)
The text was updated successfully, but these errors were encountered: