It seems like __('Migrating tables for...ny' => $company->name)) can also be of type array and array; however, parameter $string of Illuminate\Console\Command::line() 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
18
$this->line(/** @scrutinizer ignore-type */ __('Migrating tables for company :company', ['company' => $company->name]));