Skip to content

Commit 5f79069

Browse files
committed
Fix return value of Formatter.toString() when type is text
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
1 parent fa440b9 commit 5f79069

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [Unreleased]
44

5+
* Fix return value of Formatter.toString() when type is text
6+
57
## [3.4.14] - 2016-11-30
68

79
* Improved parsing of UNION queries.

src/Utils/Formatter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ public function toString($token)
487487
} elseif ($this->options['type'] === 'html') {
488488
return htmlspecialchars($text, ENT_NOQUOTES);
489489
}
490+
return $text;
490491
}
491492

492493
/**

0 commit comments

Comments
 (0)