Skip to content

[Task]: Unify JsonEntry #1955

@norberttech

Description

@norberttech

What needs to be done?

JsonEntry is not really following our convention, and definition of it looks like this:

/**
 * @implements Entry<?array<mixed>>
 */
final class JsonEntry implements Entry

Which assumes that json is an array but it should be string.

Another problem is related to validation, which happens directly in the constructor, which is redundant (logic duplication), validation should use type_json()->validate()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions