Skip to content

Allow setting by-reference return on methods generated via MethodGenerator::fromArray(), add MethodGenerator#returnsReference() #121

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

Ocramius
Copy link
Member

@Ocramius Ocramius commented Dec 7, 2021

Fixes #119
Fixes #107

Q A
Documentation no
Bugfix no
BC Break no
New Feature yes
RFC no
QA no

Description

This adds the ability to specify a returnsreference input value for MethodGenerator::fromArray(), and makes this value accessible via MethodGenerator#returnsReference().

The patch is a rebased/squashed version of #107 and then #119

Thanks @brian978 @WinterSilence!

WinterSilence and others added 7 commits December 7, 2021 06:56
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>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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>
…nario wording and type declarations

Signed-off-by: Marco Pivetta <ocramius@gmail.com>
@Ocramius Ocramius added this to the 4.5.0 milestone Dec 7, 2021
@Ocramius Ocramius self-assigned this Dec 7, 2021
@Ocramius Ocramius changed the title Feature/#119 allow setting reference on methods generated via arrays Allow setting by-reference return on methods generated via MethodGenerator::fromArray(), add MethodGenerator#returnsReference() Dec 7, 2021
@Ocramius Ocramius merged commit c99ef8e into laminas:4.5.x Dec 7, 2021
@Ocramius Ocramius deleted the feature/#119-allow-setting-reference-on-methods-generated-via-arrays branch December 7, 2021 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants