Skip to content

Commit fb92e2c

Browse files
westonruterclaude
andcommitted
Build/Test Tools: Include GlobalDocBlockVisitor in PHPStan analyzed paths.
Without this, PHPStan emits a "Result cache might not behave correctly" warning because the visitor class is registered as a service but lives outside the analysed paths, so edits to the file do not invalidate the result cache. Adds the file specifically (rather than the whole `tests/phpstan/` directory) to avoid analyzing `bootstrap.php` and `baseline.php`, which are not intended as analysis subjects. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b8694b4 commit fb92e2c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/phpstan/base.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ parameters:
9898
- ../../src/wp-signup.php
9999
- ../../src/wp-trackback.php
100100
- ../../src/xmlrpc.php
101+
- GlobalDocBlockVisitor.php
101102
bootstrapFiles:
102103
- bootstrap.php
103104
scanFiles:

0 commit comments

Comments
 (0)