Skip to content

Commit

Permalink
Symfony no longer accepts a string as an error, pass an actual valid …
Browse files Browse the repository at this point in the history
…error constant instead
  • Loading branch information
Marcuzz committed Feb 26, 2018
1 parent 3709e3a commit 1151af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Javascript/MessageParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ private function fakeFileData($data, $attribute)
*/
protected function createUploadedFile()
{
return new UploadedFile('fakefile', 'fakefile', null, null, 'fakefile', true);
return new UploadedFile('fakefile', 'fakefile', null, null, UPLOAD_ERR_NO_FILE, true);
}
}

0 comments on commit 1151af2

Please sign in to comment.