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

PHP8: static type hint #786

Closed
MasonD opened this issue Aug 31, 2021 · 5 comments
Closed

PHP8: static type hint #786

MasonD opened this issue Aug 31, 2021 · 5 comments

Comments

@MasonD
Copy link

MasonD commented Aug 31, 2021

#486
Currently the parser doesn't understand that static can be used as a type hint like so:

class Foo {
    public function Bar(): static {
        return $this;
    }
}
@fernando-rivas-smtp
Copy link
Contributor

i'm having the same problem... there is a fix or a workaround?

@alexander-akait
Copy link
Collaborator

We need fix problem in parser, PR welcome

@fernando-rivas-smtp
Copy link
Contributor

can you give me some hint to where the problem could be? i would gladly fix it!

@fernando-rivas-smtp
Copy link
Contributor

pr created: #791

@genintho
Copy link
Collaborator

This issue was fixed, can the maintainer close it?

@MasonD MasonD closed this as completed Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants