Skip to content

Commit 31bed7f

Browse files
rhertoghtmilos
authored andcommitted
Corrected variable name in Resource.php (#3)
Renamed `$arr` to `$data` in Resource::deserializeCommonAttributes();
1 parent 34e9cf4 commit 31bed7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Resource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ protected static function deserializeCommonAttributes(array $data)
147147
throw new \RuntimeException(sprintf('Error deserializing resource type "%s" into class "%s"', $data['meta']['resourceType'], get_class($result)));
148148
}
149149
$result->meta = Meta::deserializeObject($data['meta']);
150-
if (isset($arr['externalId'])) {
150+
if (isset($data['externalId'])) {
151151
$result->externalId = $data['externalId'];
152152
}
153153
if (isset($data['schemas'])) {

0 commit comments

Comments
 (0)