Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
Fix: Suppress warning caused by unexpected stream close
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowySpirits committed May 10, 2019
1 parent 0ada319 commit a200fad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
*
* @package UpyunFile
* @author codesee
* @version 1.0.3
* @version 1.0.4
* @link https://blog.sspirits.top
* @dependence 1.0-*
* @date 2019-1-20
* @date 2019-5-10
*/

use Upyun\Config;
Expand Down Expand Up @@ -175,7 +175,7 @@ public static function uploadHandle($file) {
} else {
$upyun->write($path, $fh, array('x-gmkerl-thumb' => $settings->thumbId));
}
fclose($fh);
@fclose($fh);

if (!isset($file['size'])) {
$fileInfo = $upyun->info($path);
Expand Down Expand Up @@ -239,7 +239,7 @@ public static function modifyHandle($content, $file) {
} else {
$upyun->write($path, $fh, array('x-gmkerl-thumb' => $settings->thumbId));
}
fclose($fh);
@fclose($fh);

if (!isset($file['size'])) {
$fileInfo = $upyun->info($path);
Expand Down

0 comments on commit a200fad

Please sign in to comment.