Skip to content

Commit 6d5ac89

Browse files
committed
Replace continue inside switch that breaks php7.4
1 parent 4479293 commit 6d5ac89

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/PHPVideoToolkit/Mime.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ function mime_content_type($fn) {
160160
if (!$magic) { continue; } // zero is not a good magic value anyhow
161161
}
162162

163+
$do_continue = false;
163164
#-- different types
164165
switch ($typestr) {
165166

@@ -186,9 +187,14 @@ function mime_content_type($fn) {
186187

187188
default:
188189
// date, ldate, ledate, leldate, beldate, lebelbe...
189-
continue 2;
190+
$do_continue = true;
191+
break;
190192
}
191193
}
194+
195+
if ($do_continue) {
196+
continue;
197+
}
192198

193199
#-- add to list
194200
$mime_magic_data[] = array($pos, $len, $mask, $magic, trim($ct));

0 commit comments

Comments
 (0)