I know this question has been asked several times, but none of them have a real answer for a workaround. Maybe there\'s one for my specific case.
I\'m building a map
I was receiving this notice for doing this:
$var = reset($myClass->my_magic_property);
This fixed it:
$tmp = $myClass->my_magic_property; $var = reset($tmp);