Skip to content

[Psalm] ignore doctrine/dbal 4.5 schema API deprecations - #3267

Merged
dpfaffenbauer merged 1 commit into
coreshop:2026.xfrom
dpfaffenbauer:issue/3266
Sep 29, 2026
Merged

dpfaffenbauer merged 1 commit into
coreshop:2026.xfrom
dpfaffenbauer:issue/3266

Conversation

@dpfaffenbauer

@dpfaffenbauer dpfaffenbauer commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Refs #3266

psalm.xml

doctrine/dbal 4.5.0 (resolved in the Deps highest job) deprecates Schema::createTable, Table::addColumn/addIndex/addUniqueIndex/addOption, Column::setLength/getType and marks Schema::__construct as internal. These are downgraded to info, following the existing entries for Table::setPrimaryKey / Column::__construct.

Not done: migrating to the new table editor API, since doctrine/dbal: ^4.2 is still supported and those APIs aren't available on all covered versions.

Test

  • xmllint --schema vendor/vimeo/psalm/config.xsd psalm.xml → validates
  • Locally only dbal 4.4.4 is installed, so the actual Psalm run is verified by CI here.

Supersedes #3265.

Closes #3266

doctrine/dbal 4.5 deprecates the classic schema builder API and marks
Schema::__construct as internal. The replacement table editors are not
available on all versions covered by ^4.2, so these are downgraded to
info like the existing Table::setPrimaryKey / Column::__construct entries.

Refs coreshop#3266
@sonarqubecloud

Copy link
Copy Markdown

@dpfaffenbauer
dpfaffenbauer merged commit 34a97ba into coreshop:2026.x Sep 29, 2026
10 checks passed
@dpfaffenbauer
dpfaffenbauer deleted the issue/3266 branch September 29, 2026 08:07
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Static analysis: Psalm fails with doctrine/dbal 4.5 (Deps highest)

1 participant