Skip to content

Commit d3ed54e

Browse files
authored
Use DateTimeImmutable objects in entities fixtures (#1689)
1 parent eef45ce commit d3ed54e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distribution/testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ App\Entity\Book:
4242
title: <sentence(4)>
4343
description: <text()>
4444
author: <name()>
45-
publicationDate: <dateTime()>
45+
publicationDate: <dateTimeImmutable()>
4646
```
4747
4848
```yaml
@@ -52,7 +52,7 @@ App\Entity\Review:
5252
rating: <numberBetween(0, 5)>
5353
body: <text()>
5454
author: <name()>
55-
publicationDate: <dateTime()>
55+
publicationDate: <dateTimeImmutable()>
5656
book: '@book_*'
5757
```
5858

0 commit comments

Comments
 (0)