Did you forgot the type hinting? I think this should be \Closure $data = null