We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c7043d commit 947b81bCopy full SHA for 947b81b
1 file changed
src/Validators/FileTypeValidator.php
@@ -24,8 +24,7 @@ public function __construct(array $valid_filetypes, $message = null)
24
25
public function __invoke($value)
26
{
27
- if (isset($value->size) &&
28
- $value->size > 0 && !is_null($this->valid_filetypes) && !in_array($value->type, $this->valid_filetypes)) {
+ if ($value->size > 0 && !is_null($this->valid_filetypes) && !in_array($value->type, $this->valid_filetypes)) {
29
$message = msg($this->message, array(
30
"valid_types" => implode(", ", $this->valid_filetypes),
31
"type" => $value->type
0 commit comments