Open oliverrahner opened 6 months ago
DateTime constructor must not be called with null for the $datetime parameter: https://www.php.net/manual/en/datetime.construct.php
DateTime
null
$datetime
https://github.com/DKE-Data/agrirouter-sdk-php/blob/44daf1ba1916140b2d8be66dad294341a831c0a5/src/Service/Common/UtcDataService.php#L25
Replacing null with "now" should do the trick.
"now"
The test case currently fails for this.
DateTime
constructor must not be called withnull
for the$datetime
parameter: https://www.php.net/manual/en/datetime.construct.phphttps://github.com/DKE-Data/agrirouter-sdk-php/blob/44daf1ba1916140b2d8be66dad294341a831c0a5/src/Service/Common/UtcDataService.php#L25
Replacing
null
with"now"
should do the trick.