for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ReadModel\Bridge\Doctrine\Query;
use ReadModel\InvalidArgumentException;
class TooManyColumnsException extends InvalidArgumentException
{
public function __construct(array $fields)
parent::__construct(sprintf(
'For a scalar query you should select only one column, but %d were selected: [%s]',
count($fields),
implode(', ', $fields)
));
}