Skip to content

Commit 06d02fa

Browse files
author
Recca Tsai
committed
t Merge branch 'develop'
2 parents b2f0adb + 88e0c21 commit 06d02fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Uploader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ protected function copy($source, $target, $offset)
128128
{
129129
$mode = ($offset === 0) ? 'wb' : 'ab';
130130

131-
if (! ($targetStream = @fopen($target, $mode))) {
131+
if (($targetStream = @fopen($target, $mode)) === false) {
132132
throw new UploadException('Failed to open output stream.', 102);
133133
}
134134

135-
if (! ($sourceStream = @fopen($source, 'rb'))) {
135+
if (($sourceStream = @fopen($source, 'rb')) === false) {
136136
throw new UploadException('Failed to open input stream', 101);
137137
}
138138

0 commit comments

Comments
 (0)