10000 Doctrine DBAL 4 compatibility · Issue #47962 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Doctrine DBAL 4 compatibility #47962
Closed
Closed
@dmaicher

Description

@dmaicher

Description

Since the first BETA for DBAL 4 was just released I'm looking into making https://github.com/dmaicher/doctrine-test-bundle compatible with it.

On Symfony's side I noticed this error:

In Connection.php line 82:
                                                                                                                                                                                                             
  [Symfony\Component\ErrorHandler\Error\FatalError]                                                                                                                                                          
  Compile Error: Declaration of Symfony\Bridge\Doctrine\Middleware\Debug\Connection::beginTransaction(): bool must be compatible with Doctrine\DBAL\Driver\Middleware\AbstractConnectionMiddleware::beginTr  
  ansaction(): void                                                                                                                                                                                          
                                                                                                                                                                                                             

Exception trace:
  at /var/www/doctrine-test-bundle/vendor/symfony/doctrine-bridge/Middleware/Debug/Connection.php:82

The return type was changed to : void on DBAL 4. This also affects rollback() and commit().

I guess for now this is not high priority as the public API might still change for DBAL 4. But I just wanted to register this issue already for awareness.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0