jsonmapper icon indicating copy to clipboard operation
jsonmapper copied to clipboard

Fix error when reading classes with a mixed property

Open jorrit opened this issue 7 months ago • 0 comments

I created an object with a property with type 'mixed', as is possible since PHP 8.0.

Unfortunately, this doesn't work, despite various checks in the code for $type === 'mixed'. It malfunctions in my case when mixed is not used as an annotation. but as a PHP property type. Around line 571 a namespace prefix is added because mixed is not recognized as a simple type.

This PR fixes that and adds a test.

jorrit avatar Jan 18 '24 09:01 jorrit