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
{{ message }}
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
Could you provide a way to generate short namespace without backslash for ParameterGenerator? (because $nullable will always be empty from the ParameterGenerator context.)
Like when we define implemented interfaces the method generateShortOrCompleteClassname is called in ClassGenerator
If the use statment exists, then use short synthax instead of fully qualified name.
The text was updated successfully, but these errors were encountered:
The code generator is a code generator, and changing parameters given based on context is a mess that leads to an infinite amount of bugs down the line.
Make it working code, then focus on optimising imports later (can be done with an AST pass, for example, but not with this library)
Hello,
I have a problem with
TypeGenerator
when it's used withParameterGenerator
.The output from
generate
method is return $nullable . '\' . $this->type;I'm using it like this:
The issue here is when the file is generated, the parameter type looks like:
Could you provide a way to generate short namespace without backslash for
ParameterGenerator
? (because$nullable
will always be empty from theParameterGenerator
context.)Like when we define implemented interfaces the method
generateShortOrCompleteClassname
is called in ClassGeneratorIf the use statment exists, then use short synthax instead of fully qualified name.
The text was updated successfully, but these errors were encountered: