Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Concerns/TransformableData.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ public function transform(
return $resolver->execute($this, $transformationContext);
}

/** @return array<string, mixed> */
/** @return array<array-key, mixed> */
public function all(): array
{
return $this->transform(TransformationContextFactory::create()->withValueTransformation(false));
}

/** @return array<string, mixed> */
/** @return array<array-key, mixed> */
public function toArray(): array
{
return $this->transform();
Expand All @@ -57,7 +57,7 @@ public function toJson($options = 0): string
return json_encode($this->transform(), $options);
}

/** @return array<string, mixed> */
/** @return array<array-key, mixed> */
public function jsonSerialize(): array
{
return $this->transform();
Expand Down
Loading