NonExecutableCodeSniff::$expressionTokens
Tokens for terminating expressions, which can be used inline.
This is in contrast to terminating statements, which cannot be used inline and would result in a parse error (which is not the concern of this sniff).
`throw` can be used as an expression since PHP 8.0. {@link https://wiki.php.net/rfc/throw_expression}
Type: array
File
-
vendor/
squizlabs/ php_codesniffer/ src/ Standards/ Squiz/ Sniffs/ PHP/ NonExecutableCodeSniff.php, line 30
Class
Namespace
PHP_CodeSniffer\Standards\Squiz\Sniffs\PHPCode
private $expressionTokens = [
T_EXIT => T_EXIT,
T_THROW => T_THROW,
];