Replies: 0
The hide_unrelated_notices method of the WPMailSMTP\Admin\Area class iterates over registered hooks and, if the hook is an object, assumes it is an instance of the class Closure. This, however, does not account for objects with an __invoke() method, which may be called as functions.
Instead of $arr['function'] instanceof \Closure, it would be nicer to use is_callable($arr['function']).