superlint/test/linters/php_phpcs/php_bad_2.php

16 lines
217 B
PHP
Raw Normal View History

2020-07-27 15:36:31 -04:00
<?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) {}