Skip to content

Fix PHPStan notice on latest symplify/phpstan-rules - #788

Merged
TomasVotruba merged 1 commit into
mainfrom
fix-phpstan-rules
Sep 26, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
fix-phpstan-rules

Conversation

@samsonasik

Copy link
Copy Markdown
Member

Fix PHPStan notice after composer update:

vendor/bin/phpstan
Note: Using configuration file /Users/samsonasik/www/rector-doctrine/phpstan.neon.
These files are included multiple times:
- /Users/samsonasik/www/rector-doctrine/vendor/symplify/phpstan-rules/config/code-complexity-rules.neon
- /Users/samsonasik/www/rector-doctrine/vendor/symplify/phpstan-rules/config/configurable-rules.neon
- /Users/samsonasik/www/rector-doctrine/vendor/symplify/phpstan-rules/config/static-rules.neon

It can lead to unexpected results. If you're using phpstan/extension-installer, make sure you have removed corresponding neon files from your project config file.

Ref https://github.com/rectorphp/rector-src/actions/runs/36245556898/job/108413978361?pr=8518

@samsonasik

Copy link
Copy Markdown
Member Author

Ready to merge 👍

@TomasVotruba
TomasVotruba merged commit e6e9184 into main Sep 26, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the fix-phpstan-rules branch September 26, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants