Skip to content

Commit

Permalink
Fixed the update entity trait's method to return nullable values
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanbaidan committed Sep 3, 2024
1 parent b255162 commit 434ea49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/Traits/UpdateEntityTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function resetUpdatedAtValue(): self
return $this;
}

public function getUpdatedAt(): DateTime
public function getUpdatedAt(): ?DateTime
{
return $this->updatedAt;
}
Expand Down

0 comments on commit 434ea49

Please sign in to comment.