Skip to content

Commit

Permalink
Fix php version compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
letscode-u committed Mar 22, 2021
1 parent fef67fe commit 30735c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Controller/Invoice/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ protected function getCoinCurrency(string $name)
return array_shift($items);
}

public function createCsrfValidationException(RequestInterface $request): ?InvalidRequestException
public function createCsrfValidationException(RequestInterface $request)
{
return null;
}

public function validateForCsrf(RequestInterface $request): ?bool
public function validateForCsrf(RequestInterface $request)
{
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions Controller/WebHooks/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ protected function checkDataSignature($signature, $content)
return $signature == $encodedPure;
}

public function createCsrfValidationException(RequestInterface $request): ?InvalidRequestException
public function createCsrfValidationException(RequestInterface $request)
{
return null;
}

public function validateForCsrf(RequestInterface $request): ?bool
public function validateForCsrf(RequestInterface $request)
{
return true;
}
Expand Down

0 comments on commit 30735c5

Please sign in to comment.