private function isInvalidBinaryInteger($tokens, $stackPtr)
    {
        if ($this->couldBeBinaryInteger($tokens, $stackPtr) === false) {
            return false;
        }

        if ($this->isLowPHPVersion === false) {
            // If it's an invalid binary int, the token will be split into two T_LNUMBER tokens.
            return ($tokens[$stackPtr + 1]['code'] === \T_LNUMBER);
        } else {
            return (preg_match('`^b[0-1]+$`D', $tokens[$stackPtr + 1]['content']) === 0);
        }
    }
private function isInvalidBinaryInteger($tokens, $stackPtr)
    {
        if ($this->couldBeBinaryInteger($tokens, $stackPtr) === false) {
            return false;
        }

        if ($this->isLowPHPVersion === false) {
            // If it's an invalid binary int, the token will be split into two T_LNUMBER tokens.
            return ($tokens[$stackPtr + 1]['code'] === \T_LNUMBER);
        } else {
            return (preg_match('`^b[0-1]+$`D', $tokens[$stackPtr + 1]['content']) === 0);
        }
    }
private function isInvalidBinaryInteger ( $ tokens , $ stackPtr ) { if ( $ this -> couldBeBinaryInteger ( $ tokens , $ stackPtr ) === false ) { return false ; } if ( $ this -> isLowPHPVersion === false ) { // If it's an invalid binary int, the token will be split into two T_LNUMBER tokens. return ( $ tokens [ $ stackPtr + 1 ] [ 'code' ] === \ T_LNUMBER ) ; } else { return ( preg_match ( '`^b[0-1]+$`D' , $ tokens [ $ stackPtr + 1 ] [ 'content' ] ) === 0 ) ; } }
Is the current token an invalid binary integer ?

@param array $tokens   Token stack.
@param int   $stackPtr The current position in the token stack.

@return bool
Is the current token an invalid binary integer ?