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

Fix code generation errors #37

Closed
Closed
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
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
Loading