Skip to content

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

Closed
wants to merge 12 commits into from

Conversation

Brammm
Copy link
Contributor

@Brammm Brammm commented Dec 6, 2021

Continuation of #107

WinterSilence and others added 10 commits December 6, 2021 13:34

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Add  keys `'returntype'/setReturnType()` and  `'returnsreference'/setReturnsReference()`.

Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Signed-off-by: Bram Van der Sype <bram.vandersype@gmail.com>

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
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[][]
Copy link
Contributor Author

@Brammm Brammm Dec 6, 2021

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.

Copy link
Member

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 👍

@Ocramius Ocramius added this to the 4.5.0 milestone Dec 7, 2021
@Ocramius Ocramius self-assigned this Dec 7, 2021
@@ -310,6 +314,11 @@ public function setReturnsReference($returnsReference)
return $this;
}

public function isReturnsReference(): bool
Copy link
Member

@Ocramius Ocramius Dec 7, 2021

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[][]
Copy link
Member

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 👍

@Ocramius Ocramius added the Duplicate This issue or pull request already exists label Dec 7, 2021
@Ocramius Ocramius closed this in #121 Dec 7, 2021
Ocramius added a commit that referenced this pull request Dec 7, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…rence-on-methods-generated-via-arrays

Allow setting by-reference return on methods generated via `MethodGenerator::fromArray()`, add `MethodGenerator#returnsReference()`
@Ocramius
Copy link
Member

Ocramius commented Dec 7, 2021

Merged via #121, thanks @Brammm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate This issue or pull request already exists Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants