File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -256,11 +256,6 @@ final class AlterOperation implements Component
256256 */
257257 public $ partitions ;
258258
259- /**
260- * Unparsed tokens.
261- */
262- public TokensList $ unknown ;
263-
264259 /**
265260 * @param OptionsArray $options options of alter operation
266261 * @param Expression|string|null $field altered field
@@ -271,12 +266,12 @@ public function __construct(
271266 $ options = null ,
272267 $ field = null ,
273268 $ partitions = null ,
274- array $ unknown = []
269+ public array $ unknown = []
275270 ) {
276271 $ this ->partitions = $ partitions ;
277272 $ this ->options = $ options ;
278273 $ this ->field = $ field ;
279- $ this ->unknown = new TokensList ( $ unknown) ;
274+ $ this ->unknown = $ unknown ;
280275 }
281276
282277 /**
@@ -523,7 +518,7 @@ public function build(): string
523518 $ ret .= $ this ->field . ' ' ;
524519 }
525520
526- $ ret .= $ afterFieldsOptions . $ this ->unknown -> build ( );
521+ $ ret .= $ afterFieldsOptions . TokensList:: buildFromArray ( $ this ->unknown );
527522
528523 if (isset ($ this ->partitions )) {
529524 $ ret .= PartitionDefinition::buildAll ($ this ->partitions );
You can’t perform that action at this time.
0 commit comments