Skip to content

Commit 35cab35

Browse files
committed
added array_is_list check
1 parent 8383c91 commit 35cab35

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

shell.php

+5
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ function check_syntax($code, $print_error_message = false)
153153
if (version_compare(phpversion(), '7.3.0', '>=')) {
154154
if (is_countable($_)) llecho('$_ is countable and has count ' . count($_));
155155
}
156+
157+
/* test: [1,2,3] */
158+
if (version_compare(phpversion(), '8.1.0', '>=')) {
159+
if (array_is_list($_)) llecho('$_ is a list');
160+
}
156161
}
157162
catch (Exception $e) {
158163
$_e = $e;

0 commit comments

Comments
 (0)