The simple example below fails with:
Warning: in_array() expects parameter 2 to be array, null given in Zend/Stdlib/ArrayObject.php on line 100
$ar = new Zend\Stdlib\ArrayObject();
$ar->foo = 'bar';
$ar['bar'] = 'foo';
$serialized = serialize($ar);
$unserialized = unserialize($serialized);
I tried to fix it in #6088, but without success..
Adding failing test case for #6089 - serialization causes notices
Hotfix for #6089 - `protectedProperties` of ArrayObject are maintaine…
…d on serialization
@koenpunt can you check #6089?
Close, please poke me if the issue persists, @koenpunt
Merge branch 'hotfix/6092'
Still (or again) having issues with this, using the same example as mentioned before...
@koenpunt there's a test case for this one - could you adapt it to the failure that you are experiencing?
Oh, I'm not using the latest version because zend-paginator keeps the composer version back to 2.3.0...
Ah yes, see #6397
Resolved it for now by specifying as follows:
"zendframework/zend-stdlib": "2.3.1 as 2.3.0",
Adding failing test case for zendframework/zendframework#6089 - seria…
…lization causes notices
Hotfix for zendframework/zendframework#6089 - `protectedProperties` o…
…f ArrayObject are maintained on serialization
Merge pull request zendframework/zendframework#6092 from Ocramius/hot…
Hotfix for zendframework/zendframework#6089 - ArrayObject serialization doesn't restore `protectedProperties`