swagger-codegen
swagger-codegen copied to clipboard
[PHP] Support \DateTimeImmutable
PR checklist
- [x] Read the contribution guidelines.
- [x] Ran the shell script under
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\. - [x] Filed the PR against the correct branch:
3.0.0branch for changes related to OpenAPI spec 3.0. Default:master. - [x] Copied the technical committee to review the pull request if your PR is targeting a particular programming language.
Description of the PR
Support \DateTimeImmutable
Ping @dkarlovi @mandrean
I found this issue open a few time ago: https://github.com/swagger-api/swagger-codegen/issues/6534
Ok, I'm going to adapt the code, as the date constants are only accessible on DateTimeInterface since PHP 7.2, my mistake.
@dkarlovi or @mandrean do you think I can target 3.0 branch with this change?
Hi, any update for this PR?? 👍
Hi everyone, any news about this PR ?