Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.inc
<?php
// A few keywords. Obviously not valid syntax.
class Something extends SomethingElse implements Whatever {}
abstract public private protected function whatever() {}
const array();
foreach ($var as $var) { exit; }
if ($a and $b or $c xor $d) { die; } elseif( $var ) { } else {}
goto a;

Class Something EXTENDS SomethingElse implementS Whatever {}
Abstract Public Private Protected function whatever() {}
CONST array();
ForEach ($var As $var) { Exit; }
If ($a AND $b OR $c XOR $d) { Die; } ElseIf( $var ) { } Else {}
GOTO a;
$b = function (Array $a) {};
const PRIVATE;
HttpStatus::CONTINUE;
$c = Function ($f) {
    Yield $f;
    Yield From fun();
};
class X extends Y {
    public function m() {
        Parent::m();
    }
    public function n() {
        Self::n();
    }
}
FN ($x) => $x;
__HALT_COMPILER(); // An exception due to phar support.
function