Symfony\Component\ErrorHandler\Error\FatalError {#28175 -error: array:4 [ "type" => 64 "message" => "Declaration of Swag\PayPal\Webhook\Handler\VaultPaymentTokenCreated::invoke(Swag\PayPal\RestApi\V1\Api\Webhook $webhook, Shopware\Core\Framework\Context $context): void must be compatible with Swag\PayPal\Webhook\Handler\AbstractWebhookHandler::invoke(Swag\PayPal\RestApi\PayPalApiStruct $webhook, Shopware\Core\Framework\Context $context): void" "file" => "/var/www/share/www.angelgeraete-bode.de/sw6/custom/plugins/SwagPayPal/src/Webhook/Handler/VaultPaymentTokenCreated.php" "line" => 51 ] }
public function getEventType(): string
{
return WebhookEventTypes::VAULT_PAYMENT_TOKEN_CREATED;
}
public function invoke(Webhook $webhook, Context $context): void
{
if (!$webhook->getResource() instanceof PaymentToken) {
throw new WebhookException($this->getEventType(), 'Given webhook does not have needed resource data');
}
FatalError
|
---|
Symfony\Component\ErrorHandler\Error\FatalError: Compile Error: Declaration of Swag\PayPal\Webhook\Handler\VaultPaymentTokenCreated::invoke(Swag\PayPal\RestApi\V1\Api\Webhook $webhook, Shopware\Core\Framework\Context $context): void must be compatible with Swag\PayPal\Webhook\Handler\AbstractWebhookHandler::invoke(Swag\PayPal\RestApi\PayPalApiStruct $webhook, Shopware\Core\Framework\Context $context): void at /var/www/share/www.angelgeraete-bode.de/sw6/custom/plugins/SwagPayPal/src/Webhook/Handler/VaultPaymentTokenCreated.php:51 |