1 | <?php |
||
18 | final class JWSLoader |
||
19 | { |
||
20 | /** |
||
21 | * @param array $data |
||
22 | * |
||
23 | * @return \Jose\Object\JWSInterface |
||
24 | */ |
||
25 | public static function loadSerializedJsonJWS(array $data) |
||
41 | |||
42 | /** |
||
43 | * @param array $data |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | private static function getProtectedHeaders(array $data) |
||
55 | |||
56 | /** |
||
57 | * @param array $data |
||
58 | * |
||
59 | * @return array |
||
60 | */ |
||
61 | private static function getHeaders(array $data) |
||
69 | |||
70 | /** |
||
71 | * @param \Jose\Object\JWSInterface $jws |
||
72 | * @param array $data |
||
73 | */ |
||
74 | private static function populatePayload(JWSInterface &$jws, array $data) |
||
85 | } |
||
86 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: