Closed dpash closed 3 months ago
We should use \DateTimeInterface for parameters so that we can accept \DateTime or \DateTimeImmutable.
\DateTimeInterface
\DateTime
\DateTimeImmutable
Additionally, use the root namespace on phpdoc comments so that tools like Psalm don't think there's a class in the current namespace.
Should solve https://github.com/jlevers/selling-partner-api/issues/718
We should use
\DateTimeInterface
for parameters so that we can accept\DateTime
or\DateTimeImmutable
.Additionally, use the root namespace on phpdoc comments so that tools like Psalm don't think there's a class in the current namespace.
Should solve https://github.com/jlevers/selling-partner-api/issues/718