Skip to content

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

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

TomasVotruba merged 1 commit into
mainfrom
fix-phpstan-notice-2

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/108413978402?pr=8518

@samsonasik

Copy link
Copy Markdown
Member Author

Ready to merge 👍

@TomasVotruba
TomasVotruba merged commit aecffc1 into main Sep 26, 2026
9 checks passed
@TomasVotruba
TomasVotruba deleted the fix-phpstan-notice-2 branch September 26, 2026 18:41
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