We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2671bb6 commit da8242eCopy full SHA for da8242e
src/Command/CommandHelper.php
@@ -179,7 +179,15 @@ public static function begin(
179
})($autoloadFile);
180
}
181
if ($projectConfigFile === null) {
182
- foreach (['phpstan.neon', 'phpstan.neon.dist', 'phpstan.dist.neon'] as $discoverableConfigName) {
+ $discoverableConfigNames = [
183
+ '.phpstan.neon',
184
+ '.phpstan.neon.dist',
185
+ '.phpstan.dist.neon',
186
+ 'phpstan.neon',
187
+ 'phpstan.neon.dist',
188
+ 'phpstan.dist.neon'
189
+ ];
190
+ foreach ($discoverableConfigNames as $discoverableConfigName) {
191
$discoverableConfigFile = $currentWorkingDirectory . DIRECTORY_SEPARATOR . $discoverableConfigName;
192
if (is_file($discoverableConfigFile)) {
193
$projectConfigFile = $discoverableConfigFile;
0 commit comments