Skip to content

Commit

Permalink
[HttpFoundation] changed \LogicException to \InvalidArgumentException
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 26, 2011
1 parent 1c7694f commit 8f50592
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/FileBag.php
Expand Up @@ -60,7 +60,7 @@ public function set($key, $value)
if (is_array($value) || $value instanceof UploadedFile) {
parent::set($key, $this->convertFileInformation($value));
} else {
throw new \LogicException('An uploaded file must be an array or an instance of UploadedFile.');
throw new \InvalidArgumentException('An uploaded file must be an array or an instance of UploadedFile.');
}
}

Expand Down
Expand Up @@ -23,7 +23,7 @@
class FileBagTest extends \PHPUnit_Framework_TestCase
{
/**
* @expectedException \LogicException
* @expectedException \InvalidArgumentException
*/
public function testFileMustBeAnArrayOrUploadedFile()
{
Expand Down

0 comments on commit 8f50592

Please sign in to comment.