\T_BITWISE_AND, ); /** * Do a version check to determine if this sniff needs to run at all. * * @since 9.0.0 * * @return bool */ protected function bowOutEarly() { return ($this->supportsBelow('7.2') === false); } /** * Examine the contents of a list construct to determine whether an error needs to be thrown. * * @since 9.0.0 * * @param \PHP_CodeSniffer_File $phpcsFile The file being scanned. * @param int $opener The position of the list open token. * @param int $closer The position of the list close token. * * @return void */ protected function examineList(File $phpcsFile, $opener, $closer) { $start = $opener; while (($start = $this->hasTargetInList($phpcsFile, $start, $closer)) !== false) { $phpcsFile->addError( 'Reference assignments within list constructs are not supported in PHP 7.2 or earlier.', $start, 'Found' ); } } }