--TEST-- Test typed properties allow fetch reference for foreach --FILE-- --EXPECT-- object(Foo)#1 (1) { ["bar"]=> &int(2) }