-
-
Notifications
You must be signed in to change notification settings - Fork 83
MethodGenerator::fromArray() add config keys #119
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
Conversation
Add keys `'returntype'/setReturnType()` and `'returnsreference'/setReturnsReference()`. Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>
Added dataProvider to cover cast behavior Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>
} | ||
|
||
/** | ||
* @return string[][] |
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.
Just realized this type is wrong (copied from somewhere else and then forgotten about), though not sure about conventions in the project as to what I should change it to.
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.
I'll adjust this on merge 👍
@@ -310,6 +314,11 @@ public function setReturnsReference($returnsReference) | |||
return $this; | |||
} | |||
|
|||
public function isReturnsReference(): bool |
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 is
should really be removed here - naming is totally wonky (will rename on merge)
} | ||
|
||
/** | ||
* @return string[][] |
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.
I'll adjust this on merge 👍
…rence-on-methods-generated-via-arrays Allow setting by-reference return on methods generated via `MethodGenerator::fromArray()`, add `MethodGenerator#returnsReference()`
Continuation of #107