You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##### Command line used for generation
(see above under "openapi-generator version")
##### Steps to reproduce
simply run the command with the given swagger definition. Generates nicely, but no type hinting.
##### Related issues/PRs
none found
##### Suggest a fix
typehint all function arguments and return types. Properly use ex. `?string` when types are nullable.
Best is to also generate `declare(strict_types=1);` on every file.
The text was updated successfully, but these errors were encountered:
when I set the phpLegacySupport option to false, I do see (more) strongly typed code output when using the php-symfony generator. I do not, however, see any difference in output when using this option with the php generator. Am I missing something, is it supposed to only work with php-symfony?
Bug Report Checklist
Description
When using the option
phpLegacySupport=false
, I expect type hinting to be generated in all files, but sadly it isn't. From a quick look at https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSymfonyServerCodegen.java#L346 I deduced that there should be type hinting when legacy support is disabled. Haven't looked very deeply.openapi-generator version
Latest docker, used this command:
OpenAPI declaration file content or url
The text was updated successfully, but these errors were encountered: