Skip to content

Commit

Permalink
Update according to yiisoft#297
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Sep 6, 2023
1 parent c6ba36f commit 3a3f47b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/ColumnSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -306,12 +306,4 @@ public function getColumns(): array|null
{
return $this->columns;
}

/**
* Creates instance of `CompositeParser`.
*/
private function getCompositeParser(): CompositeParser
{
return new CompositeParser();
}
}

0 comments on commit 3a3f47b

Please sign in to comment.