From b2e406c298a596113beb3326b9b7cecea752d36f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wac=C5=82awczyk=20Adam?= Date: Tue, 7 Nov 2023 12:32:42 +0100 Subject: [PATCH] Fix code generation errors --- Controller/tpay/Notification.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Controller/tpay/Notification.php b/Controller/tpay/Notification.php index dbfde00..1b46fdf 100644 --- a/Controller/tpay/Notification.php +++ b/Controller/tpay/Notification.php @@ -106,7 +106,10 @@ public function execute() * * @return null|InvalidRequestException */ - public function createCsrfValidationException(RequestInterface $request) {} + public function createCsrfValidationException(RequestInterface $request): ?InvalidRequestException + { + return null; + } /** * Perform custom request validation. @@ -114,7 +117,7 @@ public function createCsrfValidationException(RequestInterface $request) {} * * @return null|bool */ - public function validateForCsrf(RequestInterface $request) + public function validateForCsrf(RequestInterface $request): ?bool { return true; }