Skip to content

Commit

Permalink
Corrected variable name in Resource.php (#3)
Browse files Browse the repository at this point in the history
Renamed `$arr` to `$data` in Resource::deserializeCommonAttributes();
  • Loading branch information
rhertogh authored and tmilos committed Nov 29, 2019
1 parent 34e9cf4 commit 31bed7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Resource.php
Expand Up @@ -147,7 +147,7 @@ protected static function deserializeCommonAttributes(array $data)
throw new \RuntimeException(sprintf('Error deserializing resource type "%s" into class "%s"', $data['meta']['resourceType'], get_class($result)));
}
$result->meta = Meta::deserializeObject($data['meta']);
if (isset($arr['externalId'])) {
if (isset($data['externalId'])) {
$result->externalId = $data['externalId'];
}
if (isset($data['schemas'])) {
Expand Down

0 comments on commit 31bed7f

Please sign in to comment.