Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit 029497d

Browse files
committed
🔧 docs: update VS Code version requirement and configPath details
1 parent eba3029 commit 029497d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This extension integrates [PHPStan](https://phpstan.org/) with Visual Studio Cod
1414

1515
## Requirements
1616

17-
- [VS Code](https://code.visualstudio.com/) 1.100.0 or higher
17+
- [VS Code](https://code.visualstudio.com/) 1.108.0 or higher
1818
- [DDEV](https://github.com/ddev/ddev) project with running container
1919
- PHPStan installed in your DDEV container
2020

@@ -51,10 +51,10 @@ Key settings in VS Code preferences:
5151
- `ddev-phpstan.validateOn`: When to validate (`"save"` or `"type"`)
5252
- `ddev-phpstan.level`: PHPStan analysis level 0-9 (default: `6` - recommended for most projects)
5353
- `ddev-phpstan.minSeverity`: Minimum severity level (`"error"`, `"warning"`, `"info"`)
54-
- `ddev-phpstan.configPath`: Path to custom PHPStan configuration file
54+
- `ddev-phpstan.configPath`: Path to custom PHPStan configuration file. If left empty, the extension automatically looks for common configuration files like `phpstan.neon`, `phpstan.neon.dist`, `phpstan.dist.neon` in the workspace root.
5555
- `ddev-phpstan.excludePaths`: Array of paths to exclude from analysis (includes common exclusions by default)
5656

57-
**Important:** When `configPath` is specified, the extension will only use the configuration file and ignore the `level` and `excludePaths` settings, as these should be defined in the PHPStan configuration file itself.
57+
**Important:** When `configPath` is specified or an auto-detected configuration file is found, the extension will use that configuration file. In this case, the `level` and `excludePaths` settings from VS Code are ignored, as these should be defined in the PHPStan configuration file itself.
5858

5959
### Example Configuration
6060

@@ -82,7 +82,7 @@ Key settings in VS Code preferences:
8282
- **Common Exclusions**: Automatically excludes vendor code, cache directories, and other common paths that shouldn't be analyzed
8383
- **Save-based Validation**: Runs analysis when files are saved for optimal performance
8484

85-
**Note:** When `configPath` is set to a specific PHPStan configuration file, the `level` and `excludePaths` settings will be ignored, and these values should instead be configured in your PHPStan configuration file.
85+
**Note:** When `configPath` is set to a specific PHPStan configuration file (or one is auto-detected), the `level` and `excludePaths` settings will be ignored, and these values should instead be configured in your PHPStan configuration file.
8686

8787
## Status Bar
8888

0 commit comments

Comments
 (0)