It seems like __('jarboe::toolbar.mass....restore_event_failed') can also be of type array; however, parameter $message of Exception::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
64
throw new \Exception(/** @scrutinizer ignore-type */ __('jarboe::toolbar.mass_restore.restore_event_failed'));