<?php
use Exception, Awesome;
namespace Awesome\Stuff;
class bad_class
extends Awesome{
const camelCase = 'abc';
$awesome = 'unvisible';
$_great = 'fabulous';
function Do_something_snaked_cased(){
// This is one really frigging long line. I wonder if PHP-CS-Fixer will trim this really frigging long line? It says no hard limit so I think it won't.
if( isset ($abc) || TRUE )
{
// do stuff
}
}
final static public function woop() {}
function _invisible( $stuff = [] , $other_stuff ) {
switch($stuff)
{
case 0:
echo 'stuff';
break;
}
}
}
?>
Warning: The use statement with non-compound name 'Exception' has no effect in /in/RgicD on line 3
Warning: The use statement with non-compound name 'Awesome' has no effect in /in/RgicD on line 3
Parse error: syntax error, unexpected '$awesome' (T_VARIABLE), expecting function (T_FUNCTION) in /in/RgicD on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Warning: The use statement with non-compound name 'Exception' has no effect in /in/RgicD on line 3
Warning: The use statement with non-compound name 'Awesome' has no effect in /in/RgicD on line 3
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /in/RgicD on line 8
Process exited with code 255.