for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PayumTW\Ips\Action\Api;
use PayumTW\Ips\Api;
use Payum\Core\ApiAwareInterface;
use Payum\Core\Action\ActionInterface;
use Payum\Core\Exception\UnsupportedApiException;
abstract class BaseApiAwareAction implements ActionInterface, ApiAwareInterface
{
/**
* @var \Payum\Ips\Api
*/
protected $api;
* {@inheritdoc}
public function setApi($api)
if (false == $api instanceof Api) {
===
When comparing two booleans, it is generally considered safer to use the strict comparison operator.
throw new UnsupportedApiException('Not supported.');
}
$this->api = $api;
$api
object<PayumTW\Ips\Api>
object<Payum\Ips\Api>
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
When comparing two booleans, it is generally considered safer to use the strict comparison operator.