Skip to content

Commit 34d5654

Browse files
committed
set date
1 parent 5b57e4b commit 34d5654

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Entity/PhpFunction.php

-3
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,7 @@ public function getUpdatedAt(): ?DateTimeInterface
142142

143143
public function setUpdatedAt(?DateTimeInterface $updateAt): static
144144
{
145-
if(is_null($updateAt)){
146-
$updateAt = new DateTime();
147145

148-
}
149146
$this->updatedAt = $updateAt;
150147

151148
return $this;

0 commit comments

Comments
 (0)