Skip to content

Make ArrayParser internal and prevent multiple create instance of it #297

Description

@vjik

1) Suggest make ArrayParser as internal. Users don't must use this class directly, it'sright? (#297 (comment))

  1. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions