Skip to content

Conversation

@shaffe-fr
Copy link
Contributor

@shaffe-fr shaffe-fr commented Dec 23, 2020

Hi,

When a type is registered twice, an exception is thrown.
As the DBAL types registry is a static singleton, the same instance is used when running tests.

Does this need a test?
Should we overwrite a type that is already registered?

Thanks

As the DBAL type registry is a static singleton, when running multiple tests, type may be already registered.
@taylorotwell taylorotwell merged commit 843f8bb into laravel:8.x Dec 23, 2020
@shaffe-fr shaffe-fr deleted the patch-1 branch December 23, 2020 14:32
@GrahamCampbell GrahamCampbell changed the title Ensure DBAL custom type doesn't exists [8.x] Ensure DBAL custom type doesn't exists Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants