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

fails to serialize Anahkiasen/polyglot #51

Closed
Remo opened this issue Apr 24, 2015 · 2 comments
Closed

fails to serialize Anahkiasen/polyglot #51

Remo opened this issue Apr 24, 2015 · 2 comments

Comments

@Remo
Copy link
Contributor

Remo commented Apr 24, 2015

I was having a problem with confide which seems to be caused by a combination of super_close and polyglot. Original report can be found here: Zizaco/confide#522 (comment)

I can easily reproduce this if I install https://github.com/Anahkiasen/polyglot and then run this code:

$lang = App::make('translator');
$closure = new \Illuminate\Support\SerializableClosure(function () use ($lang) { });
serialize($closure);

Which will show me Serialization of 'Closure' is not allowed

I like all the libraries I'm using, any idea on how to get them working together?

@Remo
Copy link
Contributor Author

Remo commented Apr 24, 2015

Okay it seems like it was fixed in version 2.. Any chance we can fix that for version 1 so that laravel 4.2 projects can use confide and polyglot too?

@GrahamCampbell
Copy link
Contributor

Laravel 4.2 is not supported I'm afraid. If it was, I'd make sure laravel 4.2 allowed upgrading to the new super closure. I'd recommend upgrading to Laravel 5.1 since it's LTS and uses the newest version of super closure.

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