0 && ((function($p) {/* do something */})($result) === true)) {} /* testAnonClass */ $anonClass = new class( new class implements Countable { function test($param) { do { try { } catch( Exception $e ) { } } while($a === true); } } ) extends DateTime { }; /* testListOnCloseParens */ list($a, $b) = $array; /* testArrayFunctionCallWithArrowFunctionParam */ $value = array(ClassName::functionCall('Text', fn($param) => $param->get())); /* testFunctionNamedFn */ function fn() {} /* testNoOwnerOnCloseParens */ $a = ($b + $c); /* testFunctionCallFnPHPCS353-354 */ $value = $obj->fn(true); /* testArrowFunctionByReference */ $fn = fn &($x) => $x; /* testIfWithIssetEmpty */ if ( isset( $a, $b ) && ! empty ($c) ) { /* testUnset */ unset($a[1], $b->prop); } /* testEval */ eval($a . $b . $c ); /* testExit */ if (defined('FOO') || die('message')) {} /* testFQNExit */ if (defined('FOO') || \exit(10)) {} /* testMatch */ $m = match(count($a)) { 1 => true, 2 => false, default => false, }; /* testClosureUseInArray */ $array = array( 'cl' => function () use /*comment*/ ($var) {}, ); // Intentional parse error. This has to be the last test in the file. /* testParseError */ declare(ticks=1