schmittjoh/JMSSerializerBundle — Issue #86: Notice generated in PropertyMetadata, causes PHPUnit to throw Notice exception
Author: bfeaver
Created: 2012-02-21 01:15:39+00:00
State: open

Since commit e2a6adb45b 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.