Skip to content

Commit 8604e10

Browse files
committed
Fix an error from a blank filename
1 parent f69b252 commit 8604e10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/URLDiscovery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function parseURLs( array $arr ) : \Iterator {
8181
$body = null;
8282
if ( isset( $arr['body'] ) ) {
8383
$body = $arr['body'];
84-
} else if ( isset( $arr['filename'] ) ) {
84+
} else if ( $arr['filename'] ?? null ) {
8585
$body = file_get_contents( $arr['filename'] );
8686
}
8787

0 commit comments

Comments
 (0)