mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 18:43:49 +00:00
DX: fix phpstan issues
This commit is contained in:
@@ -134,7 +134,7 @@ final class ChillDocumentManager implements DocumentManagerInterface
|
||||
*/
|
||||
public function getCreationDate(Document $document): DateTimeInterface
|
||||
{
|
||||
return $document->getCreationDate();
|
||||
return $document->getCreatedAt() ?? new \DateTimeImmutable('now');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user