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

Notice generated in PropertyMetadata, causes PHPUnit to throw Notice exception #86

Closed
bfeaver opened this issue Feb 21, 2012 · 1 comment

Comments

@bfeaver
Copy link

bfeaver commented Feb 21, 2012

Since commit e2a6adb there has been a notice generated, which causes PHPUnit to fail with error exceptions on. When I revert to the previous commit, everything passes fine.

The class/object being serialized doesn't have anything special to it, just standard strings and ints for properties and standard getters/setters. I'm serializing it to XML.

Actual exception from PHPUnit -
ErrorException: Notice: Undefined offset: 13 in .../bundles/JMS/SerializerBundle/Metadata/PropertyMetadata.php line 107

Let me know if you want any more information that I can provide. When I have time, I'll try and post a simple example script that reproduces the error.

@schmittjoh
Copy link
Owner

We changed the metadata class, you need to clear your cache after upgrading to the latest version.

Please re-open if the problem still persists after that.

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