致命错误: Call to a member function toarray() on null