Skip to content

Commit

Permalink
Compatibility with brick/date-time v0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Jun 23, 2024
1 parent cffecda commit 3f309f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"license": "MIT",
"require": {
"brick/date-time": "~0.6.0",
"brick/date-time": "~0.6.0 || ~0.7.0",
"doctrine/dbal": "^2.7.0 || ^3.0",
"doctrine/orm": "^2.7.0",
"php": "^8.1"
Expand Down
4 changes: 2 additions & 2 deletions tests/TypesFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function testSaveValues(Connection $connection): Connection
$entity = new KitchenSink();

$entity->instant = Instant::of(1234567890);
$entity->dayOfWeek = DayOfWeek::friday();
$entity->dayOfWeek = DayOfWeek::FRIDAY;
$entity->localDate = LocalDate::parse('2021-04-17');
$entity->localTime = LocalTime::parse('06:31:45');
$entity->localDateTime = LocalDateTime::parse('2017-01-16T10:01:02');
Expand Down Expand Up @@ -120,7 +120,7 @@ public function testLoadValues(Connection $connection): void
self::assertNotNull($entity);

self::assertInstanceOf(DayOfWeek::class, $entity->dayOfWeek);
self::assertSame(5, $entity->dayOfWeek->getValue());
self::assertSame(5, $entity->dayOfWeek->value);

self::assertInstanceOf(Instant::class, $entity->instant);
self::assertSame(1234567890, $entity->instant->getEpochSecond());
Expand Down

0 comments on commit 3f309f9

Please sign in to comment.