Skip to content

Commit

Permalink
Fixes for issue UnimplementedInterfaceMethod: Method getsupportedtype…
Browse files Browse the repository at this point in the history
…s is not defined (#385)
  • Loading branch information
kedarkhaire authored Oct 17, 2024
1 parent ac36569 commit c84dd4a
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# CHANGELOG
## [3.0.8](https://github.com/apigee/apigee-client-php/milestone/32?closed=1)
* [#379] Update option-resolver's symfony component version to its latest.

## [3.0.7](https://github.com/apigee/apigee-client-php/milestone/31?closed=1)
* [#374] Bump minimum required version of symfony/serializer.
* [#376] Remove symfony/serializer conflict and bump version.
Expand Down
10 changes: 10 additions & 0 deletions src/Api/ApigeeX/Denormalizer/AppGroupMembershipDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,14 @@ public function supportsDenormalization($data, $type, $format = null)

return AppGroupMembership::class === $type || $type instanceof AppGroupMembership;
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array
{
return [
AppGroupMembership::class => true,
];
}
}
10 changes: 10 additions & 0 deletions src/Api/Management/Query/StatsQueryNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,14 @@ public function supportsNormalization($data, $format = null)
{
return $data instanceof StatsQuery;
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array
{
return [
StatsQuery::class => true,
];
}
}
2 changes: 1 addition & 1 deletion src/ClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ interface ClientInterface extends HttpClient
*/
public const APIGEE_ON_GCP_ENDPOINT = 'https://apigee.googleapis.com/v1';

public const VERSION = '3.0.7';
public const VERSION = '3.0.8';

/**
* Allows access to the last request, response and exception.
Expand Down
10 changes: 10 additions & 0 deletions src/Serializer/EntitySerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,16 @@ public function supportsEncoding($format): bool
return $this->format === $format && $this->serializer->supportsEncoding($format);
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array
{
return [
EntitySerializerInterface::class => true,
];
}

/**
* Allows subclasses to replace the default JSON encoder.
*
Expand Down

0 comments on commit c84dd4a

Please sign in to comment.