Skip to content

Commit

Permalink
Update src/Client.php
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Egan <[email protected]>
  • Loading branch information
nickdawsontcs and tomegantcs authored Jul 1, 2024
1 parent e081cd0 commit 2af1048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,7 @@ private function getErrorCodesFromXmlElement(SimpleXMLElement $errors): array {
* Sets the provided date to either null or a DateTimeInterface.
*/
private function toDateTimeInterface(string $dateString): DateTimeInterface|null {
if ($dateString === null || $dateString === '') {
if ($dateString === '') {
return null;
} else {
return new DateTimeImmutable((string) $dateString);
Expand Down

0 comments on commit 2af1048

Please sign in to comment.