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

[BUG] Multiple return types generates wrong @return in docblock and its return, in stubs #2283

Closed
Jeckerson opened this issue Sep 17, 2021 · 0 comments · Fixed by #2297
Closed
Assignees
Labels
bug Hacktoberfest See https://hacktoberfest.digitalocean.com/ for participants details ide
Milestone

Comments

@Jeckerson
Copy link
Member

Examples:

Zephir

public function getModule(string! name) -> array | object

PHP

    /**
     * @return array|mixed
     */
    public function getModule(string $name): array
    {
    }

Zephir

public function dispatch() -> var | bool

PHP

/**
  * @return mixed
  */
  public function dispatch(): bool
@Jeckerson Jeckerson self-assigned this Sep 17, 2021
Jeckerson added a commit that referenced this issue Oct 2, 2021
Jeckerson added a commit that referenced this issue Oct 2, 2021
Jeckerson added a commit that referenced this issue Oct 2, 2021
Jeckerson added a commit that referenced this issue Oct 2, 2021
By removing .php files and require each to get AST array
Jeckerson added a commit that referenced this issue Oct 2, 2021
@Jeckerson Jeckerson linked a pull request Oct 2, 2021 that will close this issue
3 tasks
Jeckerson added a commit that referenced this issue Oct 2, 2021
Jeckerson added a commit that referenced this issue Oct 2, 2021
@Jeckerson Jeckerson added this to the 0.14.1 milestone Oct 2, 2021
Jeckerson added a commit that referenced this issue Oct 2, 2021
Jeckerson added a commit that referenced this issue Oct 3, 2021
@Jeckerson Jeckerson modified the milestones: 0.14.1, 0.15.0 Oct 3, 2021
@Jeckerson Jeckerson added the Hacktoberfest See https://hacktoberfest.digitalocean.com/ for participants details label Oct 3, 2021
AlexNDRmac added a commit that referenced this issue Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Hacktoberfest See https://hacktoberfest.digitalocean.com/ for participants details ide
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant