1) Suggest make ArrayParser as internal. Users don't must use this class directly, it'sright? (#297 (comment))
- For each type casting of string values created new instance of
ArrayParser.
|
public function phpTypecast(mixed $value): mixed |
|
{ |
|
if ($this->dimension > 0) { |
|
if (is_string($value)) { |
|
$value = $this->getArrayParser()->parse($value); |
|
} |
It would be good prevent this behavior and create instance of ArrayParser once or make ArrayParser methods static.
Similar case: #303 (comment)
1) Suggest make(#297 (comment))ArrayParseras internal. Users don't must use this class directly, it'sright?ArrayParser.db-pgsql/src/ColumnSchema.php
Lines 107 to 112 in 56df5ac
It would be good prevent this behavior and create instance of
ArrayParseronce or makeArrayParsermethods static.Similar case: #303 (comment)