highsidelabs / saloon-sdk-generator

Generate Saloon SDKs from Postman Collections and OpenAPI Specifications.
MIT License
2 stars 5 forks source link

Use DateTimeInterface for parameters #2

Closed dpash closed 3 months ago

dpash commented 3 months ago

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