Skip to content

Commit 563de40

Browse files
committed
MC-41844: var type & default arg updated as per reviews
1 parent 56b3ad4 commit 563de40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

AdobeStockImage/Model/Storage/Save.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@ class Save
3232
private $driver;
3333

3434
/**
35-
* @var Int
35+
* @var int|null
3636
*/
3737
private $maxFileLength;
3838

3939
/**
4040
* Storage constructor.
4141
* @param Filesystem $filesystem
4242
* @param Https $driver
43-
* @param Int $maxFileLength
43+
* @param int|null $maxFileLength
4444
*/
4545
public function __construct(
4646
Filesystem $filesystem,
4747
Https $driver,
48-
$maxFileLength
48+
int $maxFileLength = null
4949
) {
50-
$this->maxFileLength = $maxFileLength;
50+
$this->maxFileLength = $maxFileLength ?: 255;
5151
$this->filesystem = $filesystem;
5252
$this->driver = $driver;
5353
}

0 commit comments

Comments
 (0)