public function checkIsNotString($value = false, $expected = false)
    {
        if (is_string($this->token) || ($value && ($this->token[0] != $value))) {
            $this->bailUnexpectedToken($expected);
        }
    }
public function checkIsNotString($value = false, $expected = false)
    {
        if (is_string($this->token) || ($value && ($this->token[0] != $value))) {
            $this->bailUnexpectedToken($expected);
        }
    }
public function checkIsNotString ( $ value = false , $ expected = false ) { if ( is_string ( $ this -> token ) || ( $ value && ( $ this -> token [ 0 ] != $ value ) ) ) { $ this -> bailUnexpectedToken ( $ expected ) ; } }
Ensure the current token is not a string and optionally is of the given value.

@param mixed      $value    Optional the value.

@param bool|mixed $expected The expected token type/value or false if unknown which one was expected.

@return void
Ensure the current token is not a string and optionally is of the given value .