This commit is contained in:
Nicolas Grekas 2021-07-05 08:31:06 +02:00
parent 2ed8a90653
commit ad48f2c00f
1 changed files with 1 additions and 6 deletions

View File

@ -24,12 +24,7 @@ class TrimmedBufferOutput extends Output
private $maxLength;
private $buffer = '';
public function __construct(
int $maxLength,
?int $verbosity = self::VERBOSITY_NORMAL,
bool $decorated = false,
OutputFormatterInterface $formatter = null
) {
public function __construct(int $maxLength, ?int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, OutputFormatterInterface $formatter = null) {
if ($maxLength <= 0) {
throw new InvalidArgumentException(sprintf('"%s()" expects a strictly positive maxLength. Got %d.', __METHOD__, $maxLength));
}