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

ParseException Syntax error while call static method dynamically #22

Open
sergeyklay opened this issue May 13, 2017 · 0 comments
Open

Comments

@sergeyklay
Copy link
Contributor

sergeyklay commented May 13, 2017

From @ikandars on February 16, 2014 10:31

I've got "Zephir\ParseException: Syntax error" when try to call a static method dynamically.

echo self::{"name"}();
-----------^
namespace Test;

class MyClass
{
    public function __construct()
    {
        echo self::{"name"}();
    }

    public static function name()
    {
        return "Jhon";
    }
}

I pulled the source from bc91853e3e8a0528481daaf26f1e04b0fab1ab33 commit id

Copied from original issue: zephir-lang/zephir#197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant