Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dot-prefixed config files #3354

Merged
merged 3 commits into from
Aug 30, 2024
Merged

Conversation

sreichel
Copy link
Contributor

Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add some tests into AnalyseCommandTest (autoDiscoveryPathsProvider) that already tests the currently discovered files. Thanks.

@ondrejmirtes ondrejmirtes merged commit d95005a into phpstan:1.12.x Aug 30, 2024
488 of 499 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@sreichel sreichel deleted the config-files branch August 30, 2024 13:53
Comment on lines +183 to +188
'.phpstan.neon',
'.phpstan.neon.dist',
'.phpstan.dist.neon',
'phpstan.neon',
'phpstan.neon.dist',
'phpstan.dist.neon',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it wanted to load .phpstan.neon.dist rather than phpstan.neon or should it be

				'.phpstan.neon',
				'phpstan.neon',
				'.phpstan.neon.dist',
				'phpstan.neon.dist',
				'.phpstan.dist.neon',
				'phpstan.dist.neon',

?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VincentLanglet Please send an update.

@thg2k
Copy link
Contributor

thg2k commented Aug 31, 2024

Yes please! I always wanted to send this PR but I thought it would be refused 😆
I always name my config .phpstan.neon so big +1 from me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow dot prefix config files
4 participants