Skip to content

Commit 17ddfe9

Browse files
authored
DQA-10936: Remove drupal_root parameter from phpstan default config (#803)
1 parent 13f5492 commit 17ddfe9

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"guzzlehttp/guzzle": "^6.3 || ^7.0",
3131
"jakeasmith/http_build_url": "^1.0",
3232
"league/container": "^4.1.1",
33-
"mglaman/phpstan-drupal": "^1.1",
33+
"mglaman/phpstan-drupal": "^1.3",
3434
"pear/archive_tar": "^1.4",
3535
"php-parallel-lint/php-parallel-lint": "^1.3",
3636
"phpmd/phpmd": "^2.12",

src/TaskRunner/Commands/TestsCommands.php

-3
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,6 @@ public function toolkitTestPhpstan(array $options = [
372372
if (!InstalledVersions::isInstalled('phpstan/extension-installer')) {
373373
$configContent['includes'] = $includes;
374374
}
375-
if (file_exists($config->get('drupal.root'))) {
376-
$configContent['parameters']['drupal']['drupal_root'] = '%currentWorkingDirectory%/' . $config->get('drupal.root');
377-
}
378375
$tasks[] = $this->taskWriteToFile($options['config'])
379376
->text(Yaml::dump($configContent, 10, 2));
380377
}

0 commit comments

Comments
 (0)