Skip to content

Commit

Permalink
Merge branch 'master' into prepare-3-9-3
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhelias committed Nov 16, 2023
2 parents bc8e730 + d08880d commit 3dc7693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- The default value for the `PhoneNumberType` form type option `country_display_emoji_flag` will change from `false` to `true` on the next major release
- The Doctrine column type length is configurable. Any existing `length` configuration (not taken into account before this release) will now be taken into account.

## [3.9.2] - 2023-06-29

Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/DBAL/Types/PhoneNumberType.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getName(): string

public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string
{
return $platform->getVarcharTypeDeclarationSQL(['length' => 35]);
return $platform->getVarcharTypeDeclarationSQL(['length' => $fieldDeclaration['length'] ?? 35]);
}

public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string
Expand Down

0 comments on commit 3dc7693

Please sign in to comment.