|
|
|
|
@ -115,14 +115,12 @@ class File extends Command implements Completion\CompletionAwareInterface { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param mixed $rotateSize |
|
|
|
|
* @throws \InvalidArgumentException |
|
|
|
|
*/ |
|
|
|
|
protected function validateRotateSize(&$rotateSize) { |
|
|
|
|
protected function validateRotateSize(false|int|float $rotateSize): void { |
|
|
|
|
if ($rotateSize === false) { |
|
|
|
|
throw new \InvalidArgumentException('Error parsing log rotation file size'); |
|
|
|
|
} |
|
|
|
|
$rotateSize = (int) $rotateSize; |
|
|
|
|
if ($rotateSize < 0) { |
|
|
|
|
throw new \InvalidArgumentException('Log rotation file size must be non-negative'); |
|
|
|
|
} |
|
|
|
|
|