Parameter 1 to App\Controllers\My_controller::{closure}() expected to be a reference, value given
Events::trigger('add_value_to_array', $array);