Skip to content

Commit 5bf1bd2

Browse files
committed
test(doctrine): use date_immutable
1 parent dca8c0b commit 5bf1bd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Fixtures/TestBundle/Entity/Comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Comment
2727
private $id;
2828
#[ORM\Column(type: 'text')]
2929
public $comment;
30-
#[ORM\Column(type: 'datetime')]
30+
#[ORM\Column(type: 'datetime_immutable')]
3131
public $date;
3232
#[ORM\ManyToOne(targetEntity: User::class)]
3333
#[ORM\JoinColumn(nullable: false)]

tests/Fixtures/TestBundle/Entity/Program.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Program
2727
private $id;
2828
#[ORM\Column]
2929
public $name;
30-
#[ORM\Column(type: 'datetime')]
30+
#[ORM\Column(type: 'datetime_immutable')]
3131
public $date;
3232
#[ORM\ManyToOne(targetEntity: User::class)]
3333
#[ORM\JoinColumn(nullable: false)]

0 commit comments

Comments
 (0)