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

v:call refuses to call methods implemented by __call() #1722

Open
aimeos opened this issue Jun 5, 2021 · 0 comments
Open

v:call refuses to call methods implemented by __call() #1722

aimeos opened this issue Jun 5, 2021 · 0 comments

Comments

@aimeos
Copy link

aimeos commented Jun 5, 2021

If an object implements methods via the __call() magic method, v:call throws an exception that the method doesn't exist:

in /usr/www/users/oswalq/www.oswald.sh/public/typo3conf/ext/vhs/Classes/ViewHelpers/CallViewHelper.php line 75
                1356849652
            );
        }
        if (false === method_exists($object, $method)) {
            throw new \RuntimeException(
                'Method "' . $method . '" does not exist on object of type ' . get_class($object),
                1356834755
            );
        }

A solution would be to check for __call() too:

if (false === method_exists($object, $method) && false === method_exists($object, '__call')) {
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