diff --git a/src/Api/ApigeeX/Normalizer/AppGroupMembershipNormalizer.php b/src/Api/ApigeeX/Normalizer/AppGroupMembershipNormalizer.php index 91dc21fa..280a358a 100644 --- a/src/Api/ApigeeX/Normalizer/AppGroupMembershipNormalizer.php +++ b/src/Api/ApigeeX/Normalizer/AppGroupMembershipNormalizer.php @@ -48,4 +48,14 @@ public function supportsNormalization($data, $format = null): bool { return $data instanceof AppGroupMembership; } + + /** + * {@inheritdoc} + */ + public function getSupportedTypes(?string $format): array + { + return [ + AppGroupMembership::class => true, + ]; + } } diff --git a/src/Api/Management/Normalizer/CompanyMembershipNormalizer.php b/src/Api/Management/Normalizer/CompanyMembershipNormalizer.php index 67336459..8e36875d 100644 --- a/src/Api/Management/Normalizer/CompanyMembershipNormalizer.php +++ b/src/Api/Management/Normalizer/CompanyMembershipNormalizer.php @@ -41,7 +41,7 @@ public function normalize($object, $format = null, array $context = []): array|s // convert to ArrayObject as symfony normalizer throws error for std object. // set ARRAY_AS_PROPS flag as we need entries to be accessed as properties. - return new ArrayObject($normalized, ArrayObject::ARRAY_AS_PROPS); + return new \ArrayObject($normalized, \ArrayObject::ARRAY_AS_PROPS); } /** diff --git a/src/Normalizer/CredentialProductNormalizer.php b/src/Normalizer/CredentialProductNormalizer.php index 49a5354b..3e43bf23 100644 --- a/src/Normalizer/CredentialProductNormalizer.php +++ b/src/Normalizer/CredentialProductNormalizer.php @@ -42,7 +42,7 @@ public function normalize($object, $format = null, array $context = []): array|s // Need to convert to ArrayObject as symfony normalizer throws error for std object. // Need to set ARRAY_AS_PROPS flag as we need Entries to be accessed as properties. - return new ArrayObject($asObject, ArrayObject::ARRAY_AS_PROPS); + return new \ArrayObject($asObject, \ArrayObject::ARRAY_AS_PROPS); } /** diff --git a/src/Normalizer/ObjectNormalizer.php b/src/Normalizer/ObjectNormalizer.php index 3a4ef973..666690f6 100644 --- a/src/Normalizer/ObjectNormalizer.php +++ b/src/Normalizer/ObjectNormalizer.php @@ -129,10 +129,10 @@ public function setSerializer(SerializerInterface $serializer): void /** * {@inheritDoc} */ - public function convertToArrayObject($normalized, $array_as_props = ArrayObject::ARRAY_AS_PROPS) + public function convertToArrayObject($normalized, $array_as_props = \ArrayObject::ARRAY_AS_PROPS) { // default set ARRAY_AS_PROPS flag as we need entries to be accessed as properties. - return new ArrayObject($normalized, $array_as_props); + return new \ArrayObject($normalized, $array_as_props); } /** diff --git a/src/Normalizer/PropertiesPropertyNormalizer.php b/src/Normalizer/PropertiesPropertyNormalizer.php index 5c345d0a..eb66bbd9 100644 --- a/src/Normalizer/PropertiesPropertyNormalizer.php +++ b/src/Normalizer/PropertiesPropertyNormalizer.php @@ -41,7 +41,7 @@ public function normalize($object, $format = null, array $context = []): array|s // convert to ArrayObject as symfony normalizer throws error for std object. // set ARRAY_AS_PROPS flag as we need entries to be accessed as properties. - return new ArrayObject($return, ArrayObject::ARRAY_AS_PROPS); + return new \ArrayObject($return, \ArrayObject::ARRAY_AS_PROPS); } /**