Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Commit 596210b

Browse files
fixes bug #5
1 parent 490cedb commit 596210b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Validate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function validate()
4040
}
4141

4242
if (!in_array(strtolower($this->getFileExtension()), $this->getTypes()) && !in_array("*", $this->getTypes())) {
43-
throw new Exception("Sorry, the \"" . $this->getFileExtension() . "\" files are not allowed! Only " . implode(", ", $this->getType()) . " files are allowed. ");
43+
throw new Exception("Sorry, the \"" . $this->getFileExtension() . "\" files are not allowed! Only " . implode(", ", $this->getTypes()) . " files are allowed. ");
4444
}
4545
}
4646

0 commit comments

Comments
 (0)