$this->table() Throws [InvalidArgumentException] A row must be an array or a TableSeparator instance $this->table() Throws [InvalidArgumentException] A row must be an array or a TableSeparator instance symfony symfony

$this->table() Throws [InvalidArgumentException] A row must be an array or a TableSeparator instance


You have to pass in an array of rows. Per table definition:

void table(array $headers, array $rows, string $style = 'default')

So you either do

$row = [['Luke', 'me@email.uk', '99']]; // An array of arrays, containing one row

or

$this->table($header, [$row]);