Skip to content

Commit

Permalink
Remove phpstan/extension-installer
Browse files Browse the repository at this point in the history
  • Loading branch information
mglaman committed Jan 28, 2020
1 parent 1ff5204 commit 22b4781
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 46 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"jean85/pretty-package-versions": "^1.2",
"mglaman/phpstan-drupal": "^0.12",
"nette/neon": "^3.1",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-deprecation-rules": "^0.12",
"symfony/console": "~3.2 || ~4.0",
Expand Down
46 changes: 1 addition & 45 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/Command/CheckCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,18 @@ protected function execute(InputInterface $input, OutputInterface $output): int
// Running in packaged Phar archive.
$phpstanBin = 'vendor/phpstan/phpstan/phpstan';
$configuration_data['parameters']['bootstrap'] = $pharPath . '/error-bootstrap.php';
$configuration_data['includes'] = [
$pharPath . '/vendor/phpstan/phpstan-deprecation-rules/rules.neon',
$pharPath . '/vendor/mglaman/phpstan-drupal/extension.neon',
];
} elseif (file_exists(__DIR__ . '/../../vendor/autoload.php')) {
// Running as a project dependency.
$phpstanBin = __DIR__ . '/../../vendor/phpstan/phpstan/phpstan';
$configuration_data['parameters']['bootstrap'] = __DIR__ . '/../../error-bootstrap.php';
$configuration_data['includes'] = [
__DIR__ . '/../../vendor/phpstan/phpstan-deprecation-rules/rules.neon',
__DIR__ . '/../../vendor/mglaman/phpstan-drupal/extension.neon',
];
} elseif (file_exists(__DIR__ . '/../../../../autoload.php')) {
// Running as a global dependency.
$phpstanBin = __DIR__ . '/../../../../phpstan/phpstan/phpstan';
Expand Down

0 comments on commit 22b4781

Please sign in to comment.