Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/Command/CommandHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,15 @@ public static function begin(
})($autoloadFile);
}
if ($projectConfigFile === null) {
foreach (['phpstan.neon', 'phpstan.neon.dist', 'phpstan.dist.neon'] as $discoverableConfigName) {
$discoverableConfigNames = [
'.phpstan.neon',
'.phpstan.neon.dist',
'.phpstan.dist.neon',
'phpstan.neon',
'phpstan.neon.dist',
'phpstan.dist.neon',
Comment on lines +183 to +188
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it wanted to load .phpstan.neon.dist rather than phpstan.neon or should it be

				'.phpstan.neon',
				'phpstan.neon',
				'.phpstan.neon.dist',
				'phpstan.neon.dist',
				'.phpstan.dist.neon',
				'phpstan.dist.neon',

?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VincentLanglet Please send an update.

];
foreach ($discoverableConfigNames as $discoverableConfigName) {
$discoverableConfigFile = $currentWorkingDirectory . DIRECTORY_SEPARATOR . $discoverableConfigName;
if (is_file($discoverableConfigFile)) {
$projectConfigFile = $discoverableConfigFile;
Expand Down
Loading