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

Drop deprecated phpstan configuration options #1146

Merged
merged 1 commit into from Apr 10, 2021

Conversation

greg0ire
Copy link
Member

@greg0ire greg0ire commented Apr 9, 2021

Q A
Type improvement
BC Break no
Fixed issues n/a

Summary

PHPStan warns about them, says they are probably no longer required.

⚠️  You're using a deprecated config option autoload_files. ⚠️️

You might not need it anymore - try removing it from your
configuration file and run PHPStan again.

If the analysis fails, there are now two distinct options
to choose from to replace autoload_files:
1) scanFiles - PHPStan will scan those for classes and functions
   definitions. PHPStan will not execute those files.
2) bootstrapFiles - PHPStan will execute these files to prepare
   the PHP runtime environment for the analysis.

Read more about this in PHPStan's documentation:
https://phpstan.org/user-guide/discovering-symbols

⚠️  You're using a deprecated config option autoload_directories. ⚠️️

You might not need it anymore - try removing it from your
configuration file and run PHPStan again.

If the analysis fails, replace it with scanDirectories.

PHPStan warns about them, says they are probably no longer required.
@greg0ire greg0ire merged commit 6d87c9a into doctrine:2.3.x Apr 10, 2021
@greg0ire greg0ire deleted the drop-deprecated-phpstan-options branch April 10, 2021 07:56
@goetas goetas added this to the 2.3.4 milestone Jul 4, 2021
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.

None yet

3 participants