We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b3ad4 commit 563de40Copy full SHA for 563de40
AdobeStockImage/Model/Storage/Save.php
@@ -32,22 +32,22 @@ class Save
32
private $driver;
33
34
/**
35
- * @var Int
+ * @var int|null
36
*/
37
private $maxFileLength;
38
39
40
* Storage constructor.
41
* @param Filesystem $filesystem
42
* @param Https $driver
43
- * @param Int $maxFileLength
+ * @param int|null $maxFileLength
44
45
public function __construct(
46
Filesystem $filesystem,
47
Https $driver,
48
- $maxFileLength
+ int $maxFileLength = null
49
) {
50
- $this->maxFileLength = $maxFileLength;
+ $this->maxFileLength = $maxFileLength ?: 255;
51
$this->filesystem = $filesystem;
52
$this->driver = $driver;
53
}
0 commit comments