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 @@ -271,11 +271,6 @@ final class AlterOperation implements Component
271271 */
272272 public $ partitions ;
273273
274- /**
275- * Unparsed tokens.
276- */
277- public TokensList $ unknown ;
278-
279274 /**
280275 * @param OptionsArray $options options of alter operation
281276 * @param Expression|string|null $field altered field
@@ -286,12 +281,12 @@ public function __construct(
286281 $ options = null ,
287282 $ field = null ,
288283 $ partitions = null ,
289- array $ unknown = []
284+ public array $ unknown = []
290285 ) {
291286 $ this ->partitions = $ partitions ;
292287 $ this ->options = $ options ;
293288 $ this ->field = $ field ;
294- $ this ->unknown = new TokensList ( $ unknown) ;
289+ $ this ->unknown = $ unknown ;
295290 }
296291
297292 /**
@@ -541,7 +536,7 @@ public static function build($component): string
541536 $ ret .= $ component ->field . ' ' ;
542537 }
543538
544- $ ret .= $ afterFieldsOptions . $ component ->unknown -> build ( );
539+ $ ret .= $ afterFieldsOptions . TokensList:: buildFromArray ( $ component ->unknown );
545540
546541 if (isset ($ component ->partitions )) {
547542 $ ret .= PartitionDefinition::buildAll ($ component ->partitions );
You can’t perform that action at this time.
0 commit comments