superlint/.automation/test/php_builtin/php_bad_2.php
Marco Ferrari fcce194d34 Merge TestCodebase and LintCodebase
Change-Id: I9a044fefe96e400b8e3320842b53fe97af2a7b40
2020-10-17 16:12:55 +02:00

15 lines
217 B
PHP

<?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) {}