src/AbstractJsonEncoder.php
private function popStack()
    {
        if (!$this->first) {
            $this->newLine = true;
        }

        $this->first = false;
        array_pop($this->stack);

        if (array_pop($this->stackType)) {
            $this->output('}', JsonToken::T_RIGHT_BRACE);
        } else {
            $this->output(']', JsonToken::T_RIGHT_BRACKET);
        }

        array_pop($this->valueStack);
    }
private function popStack()
    {
        if (!$this->first) {
            $this->newLine = true;
        }

        $this->first = false;
        array_pop($this->stack);

        if (array_pop($this->stackType)) {
            $this->output('}', JsonToken::T_RIGHT_BRACE);
        } else {
            $this->output(']', JsonToken::T_RIGHT_BRACKET);
        }

        array_pop($this->valueStack);
    }
private function popStack ( ) { if ( ! $ this -> first ) { $ this -> newLine = true ; } $ this -> first = false ; array_pop ( $ this -> stack ) ; if ( array_pop ( $ this -> stackType ) ) { $ this -> output ( '}' , JsonToken :: T_RIGHT_BRACE ) ; } else { $ this -> output ( ']' , JsonToken :: T_RIGHT_BRACKET ) ; } array_pop ( $ this -> valueStack ) ; }
Removes the top element of the value stack.
Removes the top element of the value stack .