File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function format($sql)
7878 $ this ->reset ();
7979 $ tab = "\t" ;
8080
81- $ originalTokens = $ this ->tokenizer ->tokenize ($ sql );
81+ $ originalTokens = $ this ->tokenizer ->tokenize (( string ) $ sql );
8282 $ tokens = WhiteSpace::removeTokenWhitespace ($ originalTokens );
8383
8484 foreach ($ tokens as $ i => $ token ) {
@@ -136,7 +136,7 @@ public function format($sql)
136136 } elseif ($ this ->isTokenTypeReservedTopLevel ($ token )) {
137137 $ this ->indentation
138138 ->setIncreaseSpecialIndent (true )
139- ->decreaseSpecialIndentIfCurrentIndentTypeIsSpecial ($ this );
139+ ->decreaseSpecialIndentIfCurrentIndentTypeIsSpecial ();
140140
141141 $ this ->newLine ->writeNewLineBecauseOfTopLevelReservedWord ($ addedNewline , $ tab );
142142
Original file line number Diff line number Diff line change @@ -107,9 +107,8 @@ protected function initRegex($variable)
107107 * Takes a SQL string and breaks it into tokens.
108108 * Each token is an associative array with type and value.
109109 *
110- * @param String $string The SQL string
111- *
112- * @return Array An array of tokens.
110+ * @param string $string
111+ * @return array
113112 */
114113 public function tokenize ($ string )
115114 {
You can’t perform that action at this time.
0 commit comments