Skip to content

Commit 940a050

Browse files
authored
🐛 fixed getting error
1 parent e19a9a7 commit 940a050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RememberedFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class RememberedFile extends \Symfony\Component\HttpFoundation\File\UploadedFile
1212
*/
1313
public function isValid()
1414
{
15-
$isOk = UPLOAD_ERR_OK === $this->error;
15+
$isOk = UPLOAD_ERR_OK === $this->getError();
1616

1717
return $isOk; // @todo check that pathname is within the expected storage directory
1818
//return $this->test ? $isOk : $isOk && is_uploaded_file($this->getPathname());

0 commit comments

Comments
 (0)