PHP - Indirect modification of overloaded property

前端 未结 8 1703
悲哀的现实
悲哀的现实 2020-11-28 08:38

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

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 09:12

    I have run into the same problem as w00, but I didn't had the freedom to rewrite the base functionality of the component in which this problem (E_NOTICE) occured. I've been able to fix the issue using an ArrayObject in stead of the basic type array(). This will return an object, which will defaulty be returned by reference.

提交回复
热议问题