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

Arrays containing Closure object(s) still attempted serialized with @backupStaticAttributes enabled #609

Closed
Shne opened this issue Jul 19, 2012 · 1 comment

Comments

@Shne
Copy link

Shne commented Jul 19, 2012

line 309 in PHPUnit/Util/GlobalState.php: if (!$value instanceof Closure) { checks whether the $value object is an instance of Closure and skips serialization of that object if that's the case, when the annotation @backupStaticAttributes is enabled.

However, it doesn't check whether it is an array and any of the contained objects are instances of Closure resulting in an Exception when that is the case.

@whatthejeff
Copy link
Contributor

This is a duplicate of #451.

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