Skip to content

Commit

Permalink
Merge branch '6.4' into 7.1
Browse files Browse the repository at this point in the history
* 6.4: (23 commits)
  fix tests using Twig 3.12
  skip tests requiring the intl extension if it's not installed
  🐛 throw ParseException on invalid date
  fix permitted data type of the default choice
  [ExpressionLanguage] Improve test coverage
  Fix invalid phpdoc in ContainerBuilder
  [HttpKernel] [WebProfileBundle] Fix Routing panel for URLs with a colon
  [Form] NumberType: Fix parsing of numbers in exponential notation with negative exponent
  [Security] consistent singular/plural translation in Dutch
  reset the validation context after validating nested constraints
  do not duplicate directory separators
  fix handling empty data in ValueToDuplicatesTransformer
  fix compatibility with redis extension 6.0.3+
  synchronize unsupported scheme tests
  [String] Fixed Quorum plural, that was inflected to be only "Quora" and never "Quorums"
  Fix symfony/kaz-info-teh-notifier package
  [Validator] review latvian translations
  [Validator] Add Dutch translation for `WordCount` constraint
  allow more unicode characters in URL paths
  [String][EnglishInflector] Fix words ending in 'le', e.g., articles
  ...
  • Loading branch information
derrabus committed Aug 12, 2024
2 parents bb59feb + 6a0394a commit 8217753
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Tests/UuidTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ public function testV1()
$this->assertSame('3499710062d0', $uuid->getNode());
}

public function testV1IsLowerCase()
{
$uuid = new UuidV1();
$this->assertSame(strtolower((string) $uuid), (string) $uuid);

$uuid = new UuidV1('D9E7A184-5D5B-11EA-A62A-3499710062D0');
$this->assertSame(strtolower((string) $uuid), (string) $uuid);
}

public function testV3()
{
$uuid = Uuid::v3(new UuidV4(self::A_UUID_V4), 'the name');
Expand Down
2 changes: 1 addition & 1 deletion UuidV1.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class UuidV1 extends Uuid implements TimeBasedUidInterface
public function __construct(?string $uuid = null)
{
if (null === $uuid) {
$this->uid = uuid_create(static::TYPE);
$this->uid = strtolower(uuid_create(static::TYPE));
} else {
parent::__construct($uuid, true);
}
Expand Down

0 comments on commit 8217753

Please sign in to comment.