Skip to content

Commit

Permalink
Fix code generation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwaclawczyk committed Nov 7, 2023
1 parent 82dc7a8 commit b2e406c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Controller/tpay/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,18 @@ public function execute()
*
* @return null|InvalidRequestException
*/
public function createCsrfValidationException(RequestInterface $request) {}
public function createCsrfValidationException(RequestInterface $request): ?InvalidRequestException
{
return null;
}

/**
* Perform custom request validation.
* Return null if default validation is needed.
*
* @return null|bool
*/
public function validateForCsrf(RequestInterface $request)
public function validateForCsrf(RequestInterface $request): ?bool
{
return true;
}
Expand Down

0 comments on commit b2e406c

Please sign in to comment.