Collection insert() parameters are expected to be passed by reference. PHP 7.4 seems to enforce that pretty rigidly, triggering an error when the method is called. The call_user_func_array() approach to proxying collection methods seemed to force parameters into a pass-by-value state. This pull request makes the insert() method work again.
Collection insert() parameters are expected to be passed by reference. PHP 7.4 seems to enforce that pretty rigidly, triggering an error when the method is called. The call_user_func_array() approach to proxying collection methods seemed to force parameters into a pass-by-value state. This pull request makes the insert() method work again.