for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wabel\Zoho\CRM\Exception;
/**
* Zoho CRM Exception.
*
* Standard Exception thrown when using this package
* @version 1.0.0
*/
class ZohoCRMException extends \Exception
{
* The error code cannot be stored in the "$code" property because it is converted to integer, and we have some decimals/strings.
* @var string
private $zohoCode;
public function __construct($message, $code = 0, Exception $exception = null)
$this->zohoCode = $code;
$zohoCode
string
$code
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;
parent::__construct($message, $code, $exception);
}
public function getZohoCode()
return $this->zohoCode;
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.