Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions composer-dependency-analyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
[
'friendsofphp/php-cs-fixer',
'phpstan/phpstan',
'psalm/plugin-phpunit',
'psalm/plugin-symfony',
'rector/rector',
'squizlabs/php_codesniffer',
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"friendsofphp/php-cs-fixer": "^3.93",
"phpat/phpat": "^0.11.4",
"phpstan/phpstan": "^2.1",
"psalm/plugin-phpunit": "^0.19",
"psalm/plugin-symfony": "^5.3",
"rector/rector": "^2.0",
"squizlabs/php_codesniffer": "^3.10",
Expand Down
1 change: 1 addition & 0 deletions dist/psalm.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
</projectFiles>

<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
<pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin"/>
</plugins>
</psalm>
6 changes: 5 additions & 1 deletion docs/Psalm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

## Out of the box usage
- The default configuration analyzes the `src` directory with error level 2 (strict).
- The default configuration includes the Symfony and PHPUnit plugins.
- The `--config` flag is used to specify the configuration to be used.

### Run Psalm analysis
Expand Down Expand Up @@ -55,6 +56,7 @@ Stubs help Psalm understand types from external libraries that lack proper type
</projectFiles>

<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
<pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin"/>
</plugins>

Expand Down Expand Up @@ -83,6 +85,7 @@ Suppress specific issues for certain directories or files:
</projectFiles>

<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
<pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin"/>
</plugins>

Expand Down Expand Up @@ -120,6 +123,7 @@ Baselines allow you to suppress existing issues while enforcing strict analysis
</projectFiles>

<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
<pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin"/>
</plugins>
</psalm>
Expand All @@ -139,7 +143,7 @@ vendor/bin/psalm --config=psalm.xml
| `errorLevel` | `2` | Strictness level (1=strictest, 8=most lenient) |
| `findUnusedCode` | `false` | Detect unused classes, methods, and variables |
| `ensureOverrideAttribute` | `false` | Require `#[Override]` attribute on overridden methods |
| `errorBaseline` | - | Path to baseline file for suppressing existing issues |
| `errorBaseline` | `—` | Path to baseline file for suppressing existing issues |

## Baseline management

Expand Down
1 change: 1 addition & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</stubs>

<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
<pluginClass class="Psalm\SymfonyPsalmPlugin\Plugin"/>
</plugins>

Expand Down
Loading