diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2019-12-14 23:01:22 -0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2019-12-14 23:01:22 -0300 |
commit | 1a99634c6c7251af1bb0cea8e3ab5d7a88427d91 (patch) | |
tree | 62bb1a3844f924e4fef0869ce62e7a24ab22dffb | |
parent | dc9d1a72f37b1ba15e49e87e04eec192c5acde0b (diff) | |
download | sql-parser-1a99634c6c7251af1bb0cea8e3ab5d7a88427d91.zip sql-parser-1a99634c6c7251af1bb0cea8e3ab5d7a88427d91.tar.gz sql-parser-1a99634c6c7251af1bb0cea8e3ab5d7a88427d91.tar.bz2 |
Fix uncaught TypeError with CASE Statement
Related to #272
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
-rw-r--r-- | src/Utils/Formatter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils/Formatter.php b/src/Utils/Formatter.php index a357f00..6d340cc 100644 --- a/src/Utils/Formatter.php +++ b/src/Utils/Formatter.php @@ -488,7 +488,7 @@ class Formatter // Finishing the line. if ($lineEnded) { $ret .= $this->options['line_ending'] - . str_repeat($this->options['indentation'], $indent); + . str_repeat($this->options['indentation'], (int) $indent); $lineEnded = false; } else { |