Skip to content

Commit be6c20f

Browse files
committed
php 7.4 fixes
1 parent 7d2c12c commit be6c20f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CoffeeScript/Lexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ function tag($index = 0, $tag = NULL)
12291229
$token[0] = $tag;
12301230
}
12311231

1232-
return $token[0];
1232+
return $token[0] ?? null;
12331233
}
12341234

12351235
function tag_parameters()

0 commit comments

Comments
 (0)