diff --git a/SilMock/Google/Service/Directory/Resource/Groups.php b/SilMock/Google/Service/Directory/Resource/Groups.php index 6bb2f6b..51e8b5b 100644 --- a/SilMock/Google/Service/Directory/Resource/Groups.php +++ b/SilMock/Google/Service/Directory/Resource/Groups.php @@ -59,8 +59,8 @@ public function get(string $groupKey): ?GoogleDirectory_Group if ($matchedGroup !== null) { $mockGroupsAliasesObject = new GroupsAliases($this->dbFile); $aliasesObject = $mockGroupsAliasesObject->listGroupsAliases($matchedGroup->getEmail()); - $arrayOfAliasOjbects = $aliasesObject->getAliases(); - $aliases = array_map(function (GoogleDirectory_GroupAlias $alias) { return $alias->getAlias(); }, $arrayOfAliasOjbects); + $arrayOfAliasObjects = $aliasesObject->getAliases(); + $aliases = array_map(function (GoogleDirectory_GroupAlias $alias) { return $alias->getAlias(); }, $arrayOfAliasObjects); $matchedGroup->setAliases($aliases); } return $matchedGroup;