You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 7, 2026. It is now read-only.
This would not be problematic itself if serialization of AlterTableCommand did not depend on null check:
// in AlterTableCommand::serialize() line 127if ($this->tableOptions !== null) {
if (!$this->actions->isEmpty()) {
$result .= ',';
}
$result .= "\n" . $formatter->indent . $this->tableOptions->serialize($formatter, ",\n", '');
}
The logic should probably check if the TableOptionsList is empty so the comma + \n + indent there is not added without reason since empty TableOptionsList serializes to ''.
Hello, I came across bug when creating new instance of
AlterTableCommandfrom old one.Problem is with
AlterTableCommand::getOptionsList().This would not be problematic itself if serialization of
AlterTableCommanddid not depend onnullcheck:The logic should probably check if the
TableOptionsListis empty so thecomma + \n + indentthere is not added without reason since emptyTableOptionsListserializes to''.