@@ -31,7 +31,7 @@ class CreateStatement extends Statement
3131 * @var array<string, int|array<int, int|string>>
3232 * @psalm-var array<string, (positive-int|array{positive-int, ('var'|'var='|'expr'|'expr=')})>
3333 */
34- public static $ statementOptions = [
34+ public static array $ statementOptions = [
3535 // CREATE TABLE
3636 'TEMPORARY ' => 1 ,
3737
@@ -279,10 +279,8 @@ class CreateStatement extends Statement
279279 * @see CreateStatement::TABLE_OPTIONS
280280 * @see CreateStatement::FUNCTION_OPTIONS
281281 * @see CreateStatement::TRIGGER_OPTIONS
282- *
283- * @var OptionsArray|null
284282 */
285- public $ entityOptions ;
283+ public OptionsArray | null $ entityOptions = null ;
286284
287285 /**
288286 * If `CREATE TABLE`, a list of columns and keys.
@@ -292,90 +290,72 @@ class CreateStatement extends Statement
292290 *
293291 * @var CreateDefinition[]|ArrayObj|null
294292 */
295- public $ fields ;
293+ public array | ArrayObj | null $ fields = null ;
296294
297295 /**
298296 * If `CREATE TABLE WITH`.
299297 * If `CREATE TABLE AS WITH`.
300298 * If `CREATE VIEW AS WITH`.
301299 *
302300 * Used by `CREATE TABLE`, `CREATE VIEW`
303- *
304- * @var WithStatement|null
305301 */
306- public $ with ;
302+ public WithStatement | null $ with = null ;
307303
308304 /**
309305 * If `CREATE TABLE ... SELECT`.
310306 * If `CREATE VIEW AS ` ... SELECT`.
311307 *
312308 * Used by `CREATE TABLE`, `CREATE VIEW`
313- *
314- * @var SelectStatement|null
315309 */
316- public $ select ;
310+ public SelectStatement | null $ select = null ;
317311
318312 /**
319313 * If `CREATE TABLE ... LIKE`.
320314 *
321315 * Used by `CREATE TABLE`
322- *
323- * @var Expression|null
324316 */
325- public $ like ;
317+ public Expression | null $ like = null ;
326318
327319 /**
328320 * Expression used for partitioning.
329- *
330- * @var string|null
331321 */
332- public $ partitionBy ;
322+ public string | null $ partitionBy = null ;
333323
334324 /**
335325 * The number of partitions.
336- *
337- * @var int|null
338326 */
339- public $ partitionsNum ;
327+ public int | null $ partitionsNum = null ;
340328
341329 /**
342330 * Expression used for subpartitioning.
343- *
344- * @var string|null
345331 */
346- public $ subpartitionBy ;
332+ public string | null $ subpartitionBy = null ;
347333
348334 /**
349335 * The number of subpartitions.
350- *
351- * @var int|null
352336 */
353- public $ subpartitionsNum ;
337+ public int | null $ subpartitionsNum = null ;
354338
355339 /**
356340 * The partition of the new table.
357341 *
358342 * @var PartitionDefinition[]|null
359343 */
360- public $ partitions ;
344+ public array | null $ partitions = null ;
361345
362346 /**
363347 * If `CREATE TRIGGER` the name of the table.
364348 *
365349 * Used by `CREATE TRIGGER`.
366- *
367- * @var Expression|null
368350 */
369- public $ table ;
351+ public Expression | null $ table = null ;
370352
371353 /**
372354 * The return data type of this routine.
373355 *
374356 * Used by `CREATE FUNCTION`.
375- *
376- * @var DataType|null
377357 */
378- public $ return ;
358+ public DataType | null $ return = null ;
379359
380360 /**
381361 * The parameters of this routine.
@@ -384,7 +364,7 @@ class CreateStatement extends Statement
384364 *
385365 * @var ParameterDefinition[]|null
386366 */
387- public $ parameters ;
367+ public array | null $ parameters = null ;
388368
389369 /**
390370 * The body of this function or procedure.
0 commit comments