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

Calling variable methods will crash the validator #13

Open
willemstuursma opened this issue Sep 1, 2015 · 0 comments
Open

Calling variable methods will crash the validator #13

willemstuursma opened this issue Sep 1, 2015 · 0 comments

Comments

@willemstuursma
Copy link
Contributor

We have some methods such as below to help us test our code.

    /**
     * @param string $method
     * @param mixed $parameter
     * @return mixed
     * @codeCoverageIgnore
     */
    protected function _callParent ($method, $parameter)
    {
        return parent::$method($parameter);
    }

This crashes the validator with an exception:

:1 Exception while parsing application/classes/payment/specifications/ideal.php ErrorException("ReflectionClass::getMethod() expects parameter 1 to be string, object given")

The call to the variable should be ignored, or the validator should attempt to resolve the variable.

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

1 participant