-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of support for new PHP7 typing features #4
Conversation
Thank you, this is quite the big pull request |
It's ok. I hope the implementation will help the project |
@@ -119,6 +139,13 @@ class PHPCodeGenerator { | |||
fullPath = basePath + '/' + elem.name + '.php'; | |||
codeWriter = new codegen.CodeWriter(this.getIndentString(options)); | |||
codeWriter.writeLine("<?php"); | |||
|
|||
if (options.useStrictTypes === true) { | |||
codeWriter.writeLine(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was repeated code before, but with adding more I would either try to get the repeated code into a function or check if it is either a UMLClass, UMLInterface or UMLEnumeration and then output the common header. That would be an improvement, but functionally everything looks great 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As soon as I have some time, I make some improvements to adjust this. Glad it was useful. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment I made can be fixed later and would just be a bit nicer, but overall it looks very clean 👍
Thank you again for fixing the issue.
Corresponding to issue #3
model-example.zip