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

Hydrator/WysiwygHydrator.php parse() call issue #11

Closed
benjaminkohl opened this issue May 2, 2014 · 3 comments
Closed

Hydrator/WysiwygHydrator.php parse() call issue #11

benjaminkohl opened this issue May 2, 2014 · 3 comments

Comments

@benjaminkohl
Copy link

Hi, Rob. I'm trying this out with a client project and I am using the following code to grab some TV show entries.

$entries = Entries::channel('shows')->year($year)->get();

This seems to generate a loop of the following error:

Message: call_user_func() expects parameter 1 to be a valid callback, cannot access protected method rsanchez\Deep\Hydrator\WysiwygHydrator::parse()

Filename: Hydrator/WysiwygHydrator.php

Line Number: 70
@rsanchez
Copy link
Owner

rsanchez commented May 2, 2014

Weird. This one doesn't throw errors for me, and it calls the protected function just fine. May be it's a php version-specific bug. The solution is simple enough, which is to change that parse method to public.

rsanchez added a commit that referenced this issue May 2, 2014
@rsanchez
Copy link
Owner

rsanchez commented May 2, 2014

OK, there's a new version up, changing that method to public. composer update rsanchez/deep

@benjaminkohl
Copy link
Author

Thanks, that took care of it! For the record, I'm running PHP 5.3.27 in this environment. Thanks again for building this. I wish I could go back in time and use it all over the place.

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

2 participants