| 1 | <?php |
||
| 8 | class Claim |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var mixed |
||
| 13 | */ |
||
| 14 | public $sub; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | public $iss; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | public $iat; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var int |
||
| 28 | */ |
||
| 29 | public $exp; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | public $jti; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Claim constructor |
||
| 38 | * |
||
| 39 | * @param array $data |
||
| 40 | */ |
||
| 41 | public function __construct(array $data = []) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * toArray method |
||
| 70 | * |
||
| 71 | * @return array |
||
| 72 | */ |
||
| 73 | public function toArray() |
||
| 99 | |||
| 100 | } |
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.