Avoid missing method when using __invoke