-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Open
Labels
FeatureHelp wantedIssues and PRs which are looking for volunteers to complete them.Issues and PRs which are looking for volunteers to complete them.Serializer
Description
Description
When I deserialize {"values":["1","2","3"]} to the class:
final class Test
{
/** @var array<int> */
private array $values;
/** @var array<int> */
public function __construct(array $values)
{
$this->values = $values;
}
/** @return array<int> */
public function getValues(): array
{
return $this->values;
}
}It's ignore dockblock and serialize values as array of strings.
Is it possible to workaround this and convert type to array<int>?
Example
No response
adrian-delgado
Metadata
Metadata
Assignees
Labels
FeatureHelp wantedIssues and PRs which are looking for volunteers to complete them.Issues and PRs which are looking for volunteers to complete them.Serializer