Skip to content

Commit

Permalink
Fix maxSize param
Browse files Browse the repository at this point in the history
  • Loading branch information
Warxcell committed Aug 11, 2023
1 parent 1f4002b commit 002fce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator/Constraint/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class File extends Constraint
* @param array<string>|null $groups
*/
public function __construct(
int|string|null $maxSize,
int|string|null $maxSize = null,
public string $maxSizeMessage = 'The file is too large ({{ size }}). Allowed maximum size is {{ limit }}.',
array|string $mimeTypes = [],
public string $mimeTypesMessage = 'The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.',
Expand Down

0 comments on commit 002fce6

Please sign in to comment.