phpstan / extension-installer

Composer plugin for automatic installation of PHPStan extensions.
MIT License
391 stars 27 forks source link

Drop composer plugin usage in favor of generating/use the config from phpstan directly #47

Closed mvorisek closed 2 years ago

mvorisek commented 2 years ago

Starting with composer 2.2 all plugins are disabled by default and manual confirmation to enable them is required.

This is a feature request to drop the config generation via composer plugin by generating the config from phpstan directly on runtime like:

if (class_exists(\PHPStan\ExtensionInstaller\GeneratedConfig::class)) {
    $config = \PHPStan\ExtensionInstaller\GeneratedConfig::getConfig();
    // add generated config to phpstan
    // ...
}
ondrejmirtes commented 2 years ago

This was already addressed in the README: https://github.com/phpstan/extension-installer/pull/41/files

I don't want to change how the plugin works.

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.