Skip to content

Commit

Permalink
Fix class var not used
Browse files Browse the repository at this point in the history
  • Loading branch information
codeliner committed Jun 19, 2019
1 parent b6a9421 commit 97699d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImmutableRecordDataConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function convertArrayToData(string $type, array $data)
{
$class = $this->getClassOfType($type);

return $type::fromArray($data);
return $class::fromArray($data);
}

private function getClassOfType(string $type): string
Expand Down

0 comments on commit 97699d9

Please sign in to comment.