@@ -60,7 +60,7 @@ class DocumentStore extends AbstractStore | |||
return $query->findOne(); | |||
} | |||
public function getOneLatestByType(string $documentType, $query = null): DocumentInterface | |||
public function getOneLatestByType(string $documentType, $query = null): ?DocumentInterface | |||
{ | |||
$query = $this->createDefaultQuery($query); | |||