for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nexy\PayboxDirect\Request;
/**
* @author Sullivan Senechal <[email protected]>
*/
abstract class AbstractReferencedTransactionRequest extends AbstractTransactionRequest
{
* @var string
private $reference;
* @param int $reference
* @param int $amount
public function __construct($reference, $amount)
parent::__construct($amount);
$this->reference = $reference;
$reference
string
integer
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.
$answer = 42; $correct = false; $correct = (bool) $answer;
}
public function getParameters()
$parameters = [
'REFERENCE' => $this->reference,
];
return array_merge(parent::getParameters(), $parameters);
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.