Skip to content

Commit

Permalink
Merge 190df9d into 6b7fa8a
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Nov 18, 2018
2 parents 6b7fa8a + 190df9d commit 7049422
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions system/Debug/Exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ public function exceptionHandler(\Throwable $exception)
*/
public function errorHandler(int $severity, string $message, string $file = null, int $line = null, $context = null)
{
if (! (\error_reporting() & $severity)) {
return;
}

// Convert it to an exception and pass it along.
throw new \ErrorException($message, 0, $severity, $file, $line);
}
Expand Down
2 changes: 1 addition & 1 deletion system/HTTP/Files/UploadedFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function move(string $targetPath, string $name = null, bool $overwrite =

try
{
@move_uploaded_file($this->path, $destination);
move_uploaded_file($this->path, $destination);
}
catch (\Exception $e)
{
Expand Down

0 comments on commit 7049422

Please sign in to comment.