The expression return $this->ipnArrayCo...>ipnHandler->toArray()) returns the type Spryker\Shared\Kernel\Transfer\AbstractTransfer which is incompatible with the return type mandated by SprykerEco\Zed\Amazonpay...erface::getIpnRequest() of array.
In the issue above, the returned value is violating the contract defined by the
mentioned interface.
Let's take a look at an example:
interfaceHasName{/** @return string */publicfunctiongetName();}className{public$name;}classUserimplementsHasName{/** @return string|Name */publicfunctiongetName(){returnnewName('foo');// This is a violation of the ``HasName`` interface// which only allows a string value to be returned.}}
$this->ipnHandler->toArray() of type PayWithAmazon\response is incompatible with the type array expected by parameter $data of SprykerEco\Zed\Amazonpay...terInterface::convert().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: