1 | <?php |
||
12 | class ZohoCRMException extends \Exception |
||
13 | { |
||
14 | /** |
||
15 | * The error code cannot be stored in the "$code" property because it is converted to integer, and we have some decimals/strings. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | private $zohoCode; |
||
20 | |||
21 | public function __construct($message, $code = 0, Exception $exception = null) |
||
26 | |||
27 | public function getZohoCode() |
||
31 | } |
||
32 |
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.