src/ErrorToJsonResponse.php
protected function closeOutputBuffers(int $targetLevel = 0, bool $flush = false): void
    {
        $status = ob_get_status(true);
        $level = \count($status);

        while ($level-- > $targetLevel) {
            $flush ? ob_end_flush() : ob_end_clean();
        }
    }
protected function closeOutputBuffers(int $targetLevel = 0, bool $flush = false): void
    {
        $status = ob_get_status(true);
        $level = \count($status);

        while ($level-- > $targetLevel) {
            $flush ? ob_end_flush() : ob_end_clean();
        }
    }
protected function closeOutputBuffers ( int $ targetLevel = 0 , bool $ flush = false ) : void { $ status = ob_get_status ( true ) ; $ level = \ count ( $ status ) ; while ( $ level -- > $ targetLevel ) { $ flush ? ob_end_flush ( ) : ob_end_clean ( ) ; } }
Cleans or flushes output buffers up to target level.
Resulting level can be greater than target level if a non-removable buffer has been encountered.

@param int $targetLevel
@param bool $flush

@see original Symfony Response::closeOutputBuffers
Cleans or flushes output buffers up to target level . Resulting level can be greater than target level if a non - removable buffer has been encountered .