2011-01-10 00:22:25 +01:00
|
|
|
<?php
|
|
|
|
if ( $x ) { }
|
|
|
|
f( );
|
|
|
|
q( );
|
|
|
|
g();
|
|
|
|
if ($x) { }
|
|
|
|
else if ( $y ) { }
|
2012-01-05 19:25:43 +01:00
|
|
|
|
2011-01-10 00:22:25 +01:00
|
|
|
$obj->m(
|
|
|
|
$x,
|
|
|
|
$y,
|
|
|
|
$z);
|
|
|
|
for ( $ii = 0; $ii < 1; $ii++ ) { }
|
|
|
|
foreach ( $x as $y ) { }
|
|
|
|
function q( $x ) { }
|
2012-01-28 20:29:30 +01:00
|
|
|
final class X {
|
2011-01-10 00:22:25 +01:00
|
|
|
public function f( $y ) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
foreach ( $z as $k => $v ) {
|
|
|
|
}
|
|
|
|
some_call( /* respect authorial intent */ $b,
|
|
|
|
$a // if comments are present
|
|
|
|
);
|
|
|
|
~~~~~~~~~~
|
|
|
|
warning:2:5
|
|
|
|
warning:2:8
|
|
|
|
warning:3:3
|
|
|
|
warning:4:3
|
|
|
|
warning:7:10
|
|
|
|
warning:7:13
|
|
|
|
warning:13:6
|
|
|
|
warning:13:30
|
|
|
|
warning:14:10
|
|
|
|
warning:14:19
|
|
|
|
warning:15:12
|
|
|
|
warning:15:15
|
2012-01-28 20:29:30 +01:00
|
|
|
error:16:13 XHP19 Class-Filename Mismatch
|
2011-01-10 00:22:25 +01:00
|
|
|
warning:17:21
|
|
|
|
warning:17:24
|
|
|
|
warning:20:10
|
|
|
|
warning:20:25
|
|
|
|
~~~~~~~~~~
|
|
|
|
<?php
|
|
|
|
if ($x) { }
|
|
|
|
f();
|
|
|
|
q();
|
|
|
|
g();
|
|
|
|
if ($x) { }
|
|
|
|
else if ($y) { }
|
2012-01-05 19:25:43 +01:00
|
|
|
|
2011-01-10 00:22:25 +01:00
|
|
|
$obj->m(
|
|
|
|
$x,
|
|
|
|
$y,
|
|
|
|
$z);
|
|
|
|
for ($ii = 0; $ii < 1; $ii++) { }
|
|
|
|
foreach ($x as $y) { }
|
|
|
|
function q($x) { }
|
2012-01-28 20:29:30 +01:00
|
|
|
final class X {
|
2011-01-10 00:22:25 +01:00
|
|
|
public function f($y) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
foreach ($z as $k => $v) {
|
|
|
|
}
|
|
|
|
some_call( /* respect authorial intent */ $b,
|
|
|
|
$a // if comments are present
|
|
|
|
);
|