private static function flushTextBuffer(string &$textBuffer, array &$tokens): void
    {
        if ($textBuffer !== '') {
            $tokens[] = new Token(TokenTypes::T_TEXT, $textBuffer);
            $textBuffer = '';
        }
    }
private static function flushTextBuffer(string &$textBuffer, array &$tokens): void
    {
        if ($textBuffer !== '') {
            $tokens[] = new Token(TokenTypes::T_TEXT, $textBuffer);
            $textBuffer = '';
        }
    }
private static function flushTextBuffer ( string & $ textBuffer , array & $ tokens ) : void { if ( $ textBuffer !== '' ) { $ tokens [ ] = new Token ( TokenTypes :: T_TEXT , $ textBuffer ) ; $ textBuffer = '' ; } }
Flushes any text from the buffer

@param string $textBuffer The current text buffer
@param Token[] $tokens The list of tokens to add to
Flushes any text from the buffer