Issues (18)

examples/completePurchase.php (1 issue)

Labels
Severity
1
<?php
2
3
require dirname(__DIR__) . '/tests/bootstrap.php';
4
5
$gateway = new \ByTIC\Payments\Stripe\Gateway();
6
$gateway->initialize(require TEST_FIXTURE_PATH . '/enviromentParams.php');
7
8
$request = $gateway->completePurchase();
9
$response = $request->send();
10
11
$response->send();
0 ignored issues
show
The method send() does not exist on Omnipay\Common\Message\ResponseInterface. It seems like you code against a sub-type of said class. However, the method does not exist in Omnipay\Common\Message\AbstractResponse or Omnipay\Common\Message\F...ssuersResponseInterface or Omnipay\Common\Message\RedirectResponseInterface or Omnipay\Common\Message\F...ethodsResponseInterface or ByTIC\Omnipay\Twispay\Message\AbstractResponse or ByTIC\Omnipay\Payu\Message\AbstractResponse or ByTIC\Omnipay\Paylike\Message\AbstractResponse or ByTIC\Omnipay\Euplatesc\Message\AbstractResponse or Omnipay\Stripe\Message\Response or ByTIC\Omnipay\Romcard\Message\AbstractResponse or ByTIC\Omnipay\PlatiOnline\Message\AbstractResponse or ByTIC\Omnipay\Common\Message\AbstractResponse or ByTIC\Omnipay\Paylike\Message\CaptureResponse or ByTIC\Omnipay\Euplatesc\...ompletePurchaseResponse or Omnipay\Stripe\Message\PaymentIntents\Response or ByTIC\Omnipay\Romcard\Message\SaleResponse or ByTIC\Omnipay\PlatiOnlin...ssage\AuthorizeResponse or Omnipay\Stripe\Message\PaymentIntents\Response or Omnipay\Stripe\Message\Response or Omnipay\Stripe\Message\PaymentIntents\Response. Are you sure you never get one of those? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

11
$response->/** @scrutinizer ignore-call */ 
12
           send();
Loading history...
12