Skip to content

Chore(deps-dev): Bump doctrine/dbal from 3.10.6 to 4.5.0 - #2133

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/doctrine/dbal-4.5.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/composer/doctrine/dbal-4.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Bumps doctrine/dbal from 3.10.6 to 4.5.0.

Release notes

Sourced from doctrine/dbal's releases.

4.5.0

Release Notes for 4.5.0

4.5.0

  • Total issues resolved: 0
  • Total pull requests resolved: 38
  • Total contributors: 10

New Features

Deprecations

Bugfixes

Test Suite

... (truncated)

Upgrade guide

Sourced from doctrine/dbal's upgrade guide.

Note about upgrading: Doctrine uses static and runtime mechanisms to raise awareness about deprecated code.

  • Use of @deprecated docblock that is detected by IDEs (like PHPStorm) or Static Analysis tools (like Psalm, phpstan)
  • Use of our low-overhead runtime deprecation API, details: https://github.com/doctrine/deprecations/

Upgrade to 4.6

Deprecated the mutable date/time types

The mutable date/time types have been deprecated in favor of their immutable counterparts:

Deprecated type Replacement
DateType DateImmutableType
DateTimeType DateTimeImmutableType
DateTimeUtcType DateTimeUtcImmutableType
DateTimeTzType DateTimeTzImmutableType
TimeType TimeImmutableType
VarDateTimeType VarDateTimeImmutableType

The corresponding Types::*_MUTABLE constants are deprecated in favor of their *_IMMUTABLE counterparts. Using one of these types triggers a deprecation; switch the affected columns to the immutable type to silence it.

If you want to keep working with mutable DateTime objects, you can register your own type that adapts the immutable one by converting between DateTime and DateTimeImmutable. For example, a replacement for the datetime type:

final class MutableDateTimeType extends Type implements PhpDateTimeMappingType
{
    public function __construct(
        private DateTimeImmutableType $inner,
    ) {}
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
{
    return $this->inner->getSQLDeclaration($column, $platform);
}
public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): ?string
{
if ($value instanceof DateTime) {
$value = DateTimeImmutable::createFromMutable($value);
}
return $this->inner->convertToDatabaseValue($value, $platform);


</tr></table>

... (truncated)

Commits
  • c435cd7 Merge pull request #7516 from GromNaN/fix/column-definition-type-key
  • 3eb3373 Accept the legacy "type" key in column definition arrays
  • 0ad5db2 Merge pull request #7490 from GromNaN/feature/column-type-name
  • 7aeabb0 Deprecate Column::getType() in favor of Column::getTypeName()
  • b4f1086 Merge branch '4.4.x' into 4.5.x
  • 205fdf5 Fix TransactionTest for MySQL 9.7
  • 52a6900 Merge branch '3.10.x' into 4.4.x
  • 429d4e5 Add SQLite WITHOUT ROWID table option (#7474)
  • ee81a5a CI: Use MySQL 9.7 (#7508)
  • 5f46f87 Fix phantom schema diff for float columns with default values (#7501)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Nov 11, 2026
@github-actions
github-actions Bot enabled auto-merge November 11, 2026 23:31

@AndyScherzinger AndyScherzinger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

best to check back with @enjeck - I think the v4 upgrade broke things in an older, merged branch, hence reverted back to DBAL 3.x

Bumps [doctrine/dbal](https://github.com/doctrine/dbal) from 3.10.6 to 4.5.0.
- [Release notes](https://github.com/doctrine/dbal/releases)
- [Upgrade guide](https://github.com/doctrine/dbal/blob/4.6.x/UPGRADE.md)
- [Commits](doctrine/dbal@3.10.6...4.5.0)

---
updated-dependencies:
- dependency-name: doctrine/dbal
  dependency-version: 4.5.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/composer/doctrine/dbal-4.5.0 branch from 5d451f1 to 11984ab Compare November 16, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant