Skip to content

Config generation on global installation #65

@umulmrum

Description

@umulmrum

Hi,

I have the following constellation:

  • PHPStan is installed globally (composer global require ...)
  • My project is of course "local" and I use PHPStan there.

My problem is as follows:

  • I run PHPStan after setup, and results are as expected.
  • Then I run composer install locally in the project.
  • When I run PHPStan again, the scan fails.

This is because the extension installer re-generates the GeneratedConfig on composer 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! :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions