protected function processFunctionDeclaration(File $phpcsFile, $stackPtr)
    {
        $params = PHPCSHelper::getMethodParameters($phpcsFile, $stackPtr);

        if (empty($params) === false && \is_array($params)) {
            foreach ($params as $param) {
                if ($param['nullable_type'] === true) {
                    $phpcsFile->addError(
                        'Nullable type declarations are not supported in PHP 7.0 or earlier. Found: %s',
                        $param['token'],
                        'typeDeclarationFound',
                        array($param['type_hint'])
                    );
                }
            }
        }
    }
protected function processFunctionDeclaration(File $phpcsFile, $stackPtr)
    {
        $params = PHPCSHelper::getMethodParameters($phpcsFile, $stackPtr);

        if (empty($params) === false && \is_array($params)) {
            foreach ($params as $param) {
                if ($param['nullable_type'] === true) {
                    $phpcsFile->addError(
                        'Nullable type declarations are not supported in PHP 7.0 or earlier. Found: %s',
                        $param['token'],
                        'typeDeclarationFound',
                        array($param['type_hint'])
                    );
                }
            }
        }
    }
protected function processFunctionDeclaration ( File $ phpcsFile , $ stackPtr ) { $ params = PHPCSHelper :: getMethodParameters ( $ phpcsFile , $ stackPtr ) ; if ( empty ( $ params ) === false && \ is_array ( $ params ) ) { foreach ( $ params as $ param ) { if ( $ param [ 'nullable_type' ] === true ) { $ phpcsFile -> addError ( 'Nullable type declarations are not supported in PHP 7.0 or earlier. Found: %s' , $ param [ 'token' ] , 'typeDeclarationFound' , array ( $ param [ 'type_hint' ] ) ) ; } } } }
Process this test for function tokens.

@param \PHP_CodeSniffer_File $phpcsFile The file being scanned.
@param int                   $stackPtr  The position of the current token
in the stack passed in $tokens.

@return void
Process this test for function tokens .