superlint/.automation/test/php/php_bad_2.php
2020-08-03 21:21:14 +02:00

15 lines
217 B
PHP
Executable file

<?php
/**
* @return array<string>
*/
function takesAnInt(int $i) {
return [$i, "hello"];
}
$data = ["some text", 5];
takesAnInt($data[0]);
$condition = rand(0, 5);
iff ($condition) {
} elseif ($condition) {}