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

[8.x] bind mock instances as singletons so they are not overwritten #37746

Merged
merged 2 commits into from
Jun 21, 2021
Merged

[8.x] bind mock instances as singletons so they are not overwritten #37746

merged 2 commits into from
Jun 21, 2021

Conversation

Nacoma
Copy link
Contributor

@Nacoma Nacoma commented Jun 19, 2021

Addresses #37706

Mocked instances are bound to the container as a singleton so that attempts to resolve them using resolve($abstract, $withParams) does not create a new instance and ignore the mocked instance.

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.

2 participants