@@ -49,7 +49,7 @@ class ExplainStatement extends Statement
4949 *
5050 * @var string
5151 */
52- public $ statemenetAlias ;
52+ public $ statementAlias ;
5353
5454 /**
5555 * The connection identifier, if used.
@@ -108,20 +108,20 @@ public function parse(Parser $parser, TokensList $list)
108108 if ($ state === 0 ) {
109109 if ($ token ->keyword === 'ANALYZE ' && $ miniState === 0 ) {
110110 $ state = 1 ;
111- $ this ->statemenetAlias = 'ANALYZE ' ;
111+ $ this ->statementAlias = 'ANALYZE ' ;
112112 } elseif (
113113 $ token ->keyword === 'EXPLAIN '
114114 || $ token ->keyword === 'DESC '
115115 || $ token ->keyword === 'DESCRIBE '
116116 ) {
117117 $ miniState = 1 ;
118- $ this ->statemenetAlias = $ token ->keyword ;
118+ $ this ->statementAlias = $ token ->keyword ;
119119
120120 $ lastIdx = $ list ->idx ;
121121 $ nextKeyword = $ list ->getNextOfTypeAndValue (Token::TYPE_KEYWORD , 'ANALYZE ' );
122122 if ($ nextKeyword && $ nextKeyword ->keyword !== null ) {
123123 $ miniState = 2 ;
124- $ this ->statemenetAlias .= ' ANALYZE ' ;
124+ $ this ->statementAlias .= ' ANALYZE ' ;
125125 } else {
126126 $ list ->idx = $ lastIdx ;
127127 }
@@ -184,7 +184,7 @@ public function parse(Parser $parser, TokensList $list)
184184
185185 public function build (): string
186186 {
187- $ str = $ this ->statemenetAlias ;
187+ $ str = $ this ->statementAlias ;
188188
189189 if (count ($ this ->options ->options )) {
190190 $ str .= ' ' ;
0 commit comments