Skip to content

Commit

Permalink
fix TokenStream::fromSourceWithoutOpenTag leaving a hidden open tag t…
Browse files Browse the repository at this point in the history
…oken behind
  • Loading branch information
marcioAlmada committed Oct 15, 2017
1 parent ef9bc49 commit a2329f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TokenStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ static function fromSourceWithoutOpenTag(string $source) : self {
$ts = self::fromSource('<?php ' . $source);
$ts->first->next = $ts->first->next->next;
$ts->first->next->previous = $ts->first;
$ts->reset();

return $ts;
}
Expand Down

0 comments on commit a2329f8

Please sign in to comment.