diff --git a/src/ColumnSchema.php b/src/ColumnSchema.php index 6f0b0636e..6c4964630 100644 --- a/src/ColumnSchema.php +++ b/src/ColumnSchema.php @@ -212,7 +212,7 @@ private function phpTypecastValue(mixed $value): mixed private function phpTypecastComposite(mixed $value): array|null { if (is_string($value)) { - $value = $this->getCompositeParser()->parse($value); + $value = (new CompositeParser())->parse($value); } if (!is_iterable($value)) { @@ -306,12 +306,4 @@ public function getColumns(): array|null { return $this->columns; } - - /** - * Creates instance of `CompositeParser`. - */ - private function getCompositeParser(): CompositeParser - { - return new CompositeParser(); - } }