Skip to content

Commit

Permalink
Merge branch 'release/v0.4.26'
Browse files Browse the repository at this point in the history
  • Loading branch information
betterthanclay committed Sep 4, 2024
2 parents a226d0c + 483aad0 commit 7fd9bc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.4.26 (2024-09-04)
* Improved PHPStan config generation

## v0.4.25 (2024-09-04)
* Added analysis config automation

Expand Down
5 changes: 4 additions & 1 deletion src/Task/Analyze.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ protected function ensureInstalled(): bool
// Neon file
$neonFile = Integra::$rootDir->getFile('phpstan.neon');

if (!$neonFile->exists()) {
if (
!$neonFile->exists() &&
empty($this->findConfigFiles())
) {
$template = new PhpstanTemplate();
$template->saveTo($neonFile);
}
Expand Down

0 comments on commit 7fd9bc4

Please sign in to comment.