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

self hint not recognized in reflection getClass() #4465

Closed
Ocramius opened this issue Dec 16, 2014 · 5 comments
Closed

self hint not recognized in reflection getClass() #4465

Ocramius opened this issue Dec 16, 2014 · 5 comments
Assignees

Comments

@Ocramius
Copy link
Contributor

See http://3v4l.org/I60Jt

<?php

class Foo
{
    public function compare(self $otherFoo) { return $otherFoo === $this; }
}

var_dump((new ReflectionParameter(['Foo', 'compare'], 'otherFoo'))->getClass());

Causes an exception in HHVM, works in PHP. If somebody can suggest me where to look for this I can provide a patch myself.

@Majkl578
Copy link
Contributor

@Ocramius
Copy link
Contributor Author

@Majkl578 interesting that I couldn't find the issue myself: thanks for digging it out!

Issue seems to be still existing in latest master: am I missing something?

@fredemmott fredemmott self-assigned this Dec 16, 2014
@fredemmott fredemmott changed the title self hint not recognized in reflection self hint not recognized in reflection getClass() Dec 16, 2014
@fredemmott
Copy link
Contributor

should have a fix up shortly

@fredemmott
Copy link
Contributor

@Ocramius
Copy link
Contributor Author

@fredemmott awesome, thanks!

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

3 participants