Issue Bug Closed

#105959Typed property Doctrine\DBAL\Schema\ColumnDiff::$newColumn must not be accessed before initialization

Stefan Bürk 01/17/25, 15:32 updated 12/02/25, 14:26

Description

Database related structure changes (Database Analyzer, Functional Tests, extension:setup, …)
fails with

> Typed property Doctrine\DBAL\Schema\ColumnDiff::$newColumn must not be accessed before initialization

error with Doctrine DBAL 4.2.2.

Composer instances are the only instances able to get the Doctrine DBAL 4.2.2 or higher in and could
mitigate this by adding Doctrine DBAL 4.2.2 as conflict to their root composer.json.

TYPO3 needs to adopt the new missing to the extended ColumnDiff to avoid the aforementioned error.

Composer based instances can use

composer require "doctrine/dbal":"<4.2.2"

to avoid the conflict and removing it when updating to
the TYPO3 version containing the raise and fix.

[1] https://github.com/doctrine/dbal/releases/tag/4.2.2
2 https://github.com/doctrine/dbal/pull/6693

Reviews 3