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

Exclude test providers from autoloading #696

Merged
merged 6 commits into from
Oct 23, 2020
Merged

Exclude test providers from autoloading #696

merged 6 commits into from
Oct 23, 2020

Conversation

kwebble
Copy link
Contributor

@kwebble kwebble commented Oct 22, 2020

  • Added or updated tests
  • Documented user facing changes
  • Updated CHANGELOG.md

Resolves #683

Changes
Previously an instance of all detected service providers was created during analysis. This is changed. Now classes with namespaces defined in psr-4 paths in the autoload-dev configuration of composer.json are skipped.

Breaking changes
Since a number of classes previously autoloaded are skipped runtime behavior is changed. But I don't think it changes the outcome of the analysis.

kwebble and others added 3 commits October 22, 2020 09:12
feat: add support for file method call on Request
Prevent loading classes used for testing only during analysis.
Use uniform directory names for tests based on RuleTest so they run on Windows.
@canvural canvural merged commit 58baa1c into larastan:master Oct 23, 2020
@canvural
Copy link
Collaborator

Thank you very much @kwebble !

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.

Unregistered service provider is executed during analysis
3 participants