Skip to content

Commit 4f7b7ec

Browse files
committed
phpstan fix
1 parent 4a79f7b commit 4f7b7ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Libraries/Blog.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,9 @@ protected function parseVideoTags(?string $html = null)
295295
// Since the plugin doesn't support video embeds, yet,
296296
// wire our own up. The syntax for video embeds is
297297
// ![[ https://youtube.com/watch?v=xlkjsdfhlk ]]
298-
preg_match_all('|!video\[([\s\w:/.?=&;]*)\]|i', $html, $matches);
298+
$result = preg_match_all('|!video\[([\s\w:/.?=&;]*)\]|i', $html, $matches);
299299

300-
if ($matches === []) {
300+
if ($result === false || $result === 0) {
301301
return $html;
302302
}
303303

0 commit comments

Comments
 (0)