Skip to content

Commit 65eaad3

Browse files
committed
Fix
1 parent e1cab60 commit 65eaad3

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/Psalm/Config.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@
140140
*/
141141
final class Config
142142
{
143+
public const INIT_PROJECT_FILES_NOW = false;
144+
143145
final public const DEFAULT_BASELINE_NAME = 'psalm-baseline.xml';
144146
private const DEFAULT_FILE_NAMES = [
145147
'psalm.xml',

src/Psalm/Internal/Analyzer/ProjectAnalyzer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@ public function __construct(
235235

236236
$this->config->processPluginFileExtensions($this);
237237

238+
if ($this->config::INIT_PROJECT_FILES_NOW) {
239+
$this->initExtraFiles();
240+
$this->initProjectFiles();
241+
}
242+
238243
self::$instance = $this;
239244
}
240245

tests/TestConfig.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
final class TestConfig extends Config
1616
{
17+
public const INIT_PROJECT_FILES_NOW = true;
1718
private static ?ProjectFileFilter $cached_project_files = null;
1819

1920
public function __construct()

0 commit comments

Comments
 (0)