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

Zephir stubs shouldn't add 'void' return type hint #1977

Closed
sergeyklay opened this issue Oct 17, 2019 · 0 comments · Fixed by #1978
Closed

Zephir stubs shouldn't add 'void' return type hint #1977

sergeyklay opened this issue Oct 17, 2019 · 0 comments · Fixed by #1978
Labels
enhancement Hacktoberfest See https://hacktoberfest.digitalocean.com/ for participants details

Comments

@sergeyklay
Copy link
Contributor

As a far as Zephir supports PHP 7.0 the stubs command should generate methods with void return type hint:

- public function foo(): void
+ public function foo()
  {
  }

Currently this work so only if PHP 7.0 is used by generating stubs.

@sergeyklay sergeyklay added Hacktoberfest See https://hacktoberfest.digitalocean.com/ for participants details enhancement labels Oct 17, 2019
JellyBrick added a commit to JellyBrick/zephir that referenced this issue Oct 17, 2019
@JellyBrick JellyBrick mentioned this issue Oct 17, 2019
3 tasks
sergeyklay added a commit that referenced this issue Oct 17, 2019
dreamsxin pushed a commit to dreamsxin/zephir that referenced this issue Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Hacktoberfest See https://hacktoberfest.digitalocean.com/ for participants details
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant