Skip to content

#40119 broke how dbal array in config/database.php is handled. #40297

@canvural

Description

@canvural
  • Laravel Version: 8.78.1
  • PHP Version: 8.1.0
  • Database Driver & Version: MySQL 8

Description:

#40119 introduced an improvement for handling custom Doctrine types. But for some people it broke the test suites. (#40119 (comment) and #40119 (comment))

For sequential test runs issue happens when there is only the dbal array in config/database.php And the issue is gone when adding DB::registerDoctrineType call to AppServiceProvider. Which is not a good solution because it causes the application to make DB connection while the app is booting.

For parallel test runs issue happens in both cases.

Steps To Reproduce:

This repo shows the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions