Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MethodSignatureMismatch: Method supportsDenormalization with return type '' is different to return type 'bool' of inherited method #386

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Api/ApigeeX/Denormalizer/ApiProductDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Api/ApigeeX/Denormalizer/AppDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Api/ApigeeX/Denormalizer/BillingTypeDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
if (parent::supportsDenormalization($data, $type, $format)) {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
if (parent::supportsDenormalization($data, $type, $format)) {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Api/ApigeeX/Denormalizer/RatePlanDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
foreach ($this->denormalizers as $denormalizer) {
if ($denormalizer->supportsDenormalization($data, $type, $format)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Api/ApigeeX/Denormalizer/RatePlanRateDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Management/Denormalizer/AppDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Monetization/Denormalizer/AddressDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Monetization/Denormalizer/BalanceDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
if (parent::supportsDenormalization($data, $type, $format)) {
return $data->developer->isCompany;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
if (parent::supportsDenormalization($data, $type, $format)) {
return $data->developer->isCompany;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
if (parent::supportsDenormalization($data, $type, $format)) {
// Non-developer specific reports API also returns the developer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
if (parent::supportsDenormalization($data, $type, $format)) {
return !$data->developer->isCompany;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
if (parent::supportsDenormalization($data, $type, $format)) {
return !$data->developer->isCompany;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
if (parent::supportsDenormalization($data, $type, $format)) {
// Non-developer specific reports API also returns the developer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Monetization/Denormalizer/RatePlanDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
foreach ($this->denormalizers as $denormalizer) {
if ($denormalizer->supportsDenormalization($data, $type, $format)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function denormalize($data, $type, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
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
2 changes: 1 addition & 1 deletion src/Denormalizer/AttributesPropertyDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class AttributesPropertyDenormalizer extends KeyValueMapDenormalizer
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Denormalizer/CredentialProductDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CredentialProductDenormalizer implements DenormalizerInterface
/**
* {@inheritdoc}
*/
public function supportsDenormalization($data, $type, $format = null)
public function supportsDenormalization($data, $type, $format = null): bool
{
// Do not apply this on array objects. ArrayDenormalizer takes care of them.
if ('[]' === substr($type, -2)) {
Expand Down
Loading
Loading