Skip to content
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

ProxyGenerator::isShortIdentifierGetter in PHP 7.1 does not support nullable types #761

Closed
aurimasniekis opened this issue Jan 13, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@aurimasniekis
Copy link
Contributor

ProxyGenerator::isShortIdentifierGetter does not work with PHP7.1 nullable return types.

Does not work

public function getId() : ?int

Works

public function getId() : int

If I understood correctly the ProxyGenerator::PATTERN_MATCH_ID_METHOD should be updated to include question mark in return type and test cases to have case with nullable return type.

Ocramius added a commit that referenced this issue Jan 13, 2017
Ocramius added a commit that referenced this issue Jan 13, 2017
Ocramius added a commit that referenced this issue Jan 13, 2017
…identifier-hint-in-proxies

Fix #761, #762: support nullable identifier hint in proxies
@Ocramius Ocramius added this to the 2.7.2 milestone Jan 13, 2017
@Ocramius Ocramius added the Bug label Jan 13, 2017
@Ocramius Ocramius self-assigned this Jan 13, 2017
Ocramius added a commit that referenced this issue Jan 13, 2017
Ocramius added a commit that referenced this issue Jan 13, 2017
Ocramius added a commit that referenced this issue Jan 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants