We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa43847 commit f435e92Copy full SHA for f435e92
1 file changed
src/Service/BaseImporter.php
@@ -74,9 +74,9 @@ protected function convertLink(?object $obj): ?string
74
/**
75
* @throws \Exception
76
*/
77
- protected function convertDate(string $date): \DateTime
+ protected function convertDate(string $date): ?\DateTimeInterface
78
{
79
- return new \DateTime($date);
+ return empty($date) ? null : new \DateTimeImmutable($date);
80
}
81
82
@@ -87,7 +87,7 @@ protected function convertDate(string $date): \DateTime
87
protected function convertSystemOwner(array $systemOwner): string
88
89
if (empty($systemOwner)) {
90
- return '';
+ return '';
91
92
93
return $systemOwner[0]->LookupValue ?? '';
0 commit comments