Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

[Bug] StaticCall in Closure in namespace #288

Closed
algo13 opened this issue Dec 29, 2016 · 6 comments
Closed

[Bug] StaticCall in Closure in namespace #288

algo13 opened this issue Dec 29, 2016 · 6 comments
Assignees
Labels

Comments

@algo13
Copy link
Contributor

algo13 commented Dec 29, 2016

<?php
namespace A;
class C1
{
    public static function f1() {}
}
class C2
{
    public function f2()
    {
        $r = function() {
            C1::f1();
        };
    }
}
  [Symfony\Component\Debug\Exception\FatalThrowableError]
  Call to a member function hasMethod() on null

$context->scope is null

@ddmler
Copy link
Collaborator

ddmler commented Dec 29, 2016

#182 Lexty's comment is about the same problem I think.

@ddmler ddmler added the bug label Dec 29, 2016
@ovr
Copy link
Owner

ovr commented Dec 29, 2016

@ddmler Looks like, working on it

ovr added a commit that referenced this issue Dec 29, 2016
@ovr
Copy link
Owner

ovr commented Dec 29, 2016

@algo13 I think you can try with latest master, this commit b6226c6 should help to fix this bug

@ovr ovr self-assigned this Dec 29, 2016
@algo13
Copy link
Contributor Author

algo13 commented Dec 30, 2016

@ovr Thank you!
I did not interrupt with latest master.

But PHP7 Warning in src/Definition/RuntimeClassDefinition.php by 149c2d6

PHP Warning:  Declaration of PHPSA\Definition\RuntimeClassDefinition::hasProperty($name, $inherit = false)
should be compatible with PHPSA\Definition\ClassDefinition::hasProperty($name, $inherit = false, $isParent = true)

Thanks

@ovr
Copy link
Owner

ovr commented Dec 30, 2016

@algo13 Thanks for report, fixed!

@algo13
Copy link
Contributor Author

algo13 commented Jan 2, 2017

@ovr Thanks for fixed!

@algo13 algo13 closed this as completed Jan 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants